Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000802/0.0008019, allocations: 93.25 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009415/0.0009416, allocations: 172.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.289/1.289, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.0004278, allocations: 12 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07632/0.07675, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009955/0.08674, allocations: 12.88 MB / 341.9 MB, free: 6.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01988/0.1067, allocations: 19.25 MB / 361.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.1085, allocations: 67.44 kB / 361.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002713/0.1112, allocations: 0.967 MB / 362.2 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006369/0.1176, allocations: 1.895 MB / 364.1 MB, free: 468 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004135/0.1218, allocations: 1.153 MB / 365.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008781/0.1306, allocations: 6.167 MB / 371.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006859/0.1313, allocations: 405 kB / 371.8 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.1326, allocations: 0.921 MB / 372.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009756/0.1336, allocations: 1.021 MB / 373.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.1337, allocations: 44 kB / 373.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003149/0.1369, allocations: 1.132 MB / 374.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002786/0.1372, allocations: 297.6 kB / 375.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.1384, allocations: 1.317 MB / 376.5 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004386/0.1428, allocations: 3.556 MB / 380.1 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1428, allocations: 0 / 380.1 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1428, allocations: 0 / 380.1 MB, free: 372 kB / 318.1 MB Notification: Performance of Transformations before backend: time 3.425e-05/0.1429, allocations: 0 / 380.1 MB, free: 372 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.1438/0.2866, allocations: 3.149 MB / 383.3 MB, free: 53.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.2867, allocations: 9.125 kB / 383.3 MB, free: 53.06 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.2868, allocations: 99.3 kB / 383.4 MB, free: 53.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003767/0.2872, allocations: 382.8 kB / 383.7 MB, free: 52.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.2906, allocations: 2.55 MB / 386.3 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.2906, allocations: 33.53 kB / 386.3 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.2908, allocations: 53.5 kB / 386.4 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.2923, allocations: 0.7962 MB / 387.2 MB, free: 51.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2923, allocations: 4.969 kB / 387.2 MB, free: 51.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.2924, allocations: 17.2 kB / 387.2 MB, free: 51.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.2924, allocations: 20.06 kB / 387.2 MB, free: 51.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.2943, allocations: 0.9223 MB / 388.1 MB, free: 51.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/0.2989, allocations: 3.017 MB / 391.1 MB, free: 50.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.3005, allocations: 0.8631 MB / 392 MB, free: 49.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3019, allocations: 0.9768 MB / 393 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02133/0.3233, allocations: 30.19 MB / 423.2 MB, free: 19.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.3243, allocations: 0.6263 MB / 423.8 MB, free: 18.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 2.645e-06/0.3243, allocations: 0 / 423.8 MB, free: 18.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01102/0.3354, allocations: 5.706 MB / 429.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.3354, allocations: 69.48 kB / 429.6 MB, free: 12.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002311/0.3377, allocations: 2.709 MB / 432.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.902e-05/0.3378, allocations: 41.7 kB / 432.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007154/0.3385, allocations: 1.3 MB / 433.6 MB, free: 8.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.3387, allocations: 336.2 kB / 433.9 MB, free: 8.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3388, allocations: 85.67 kB / 434 MB, free: 7.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.902e-05/0.3389, allocations: 353.8 kB / 434.4 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.34, allocations: 0.5293 MB / 434.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.3412, allocations: 0.7095 MB / 435.6 MB, free: 6.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/0.3435, allocations: 1.261 MB / 436.9 MB, free: 4.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3435, allocations: 4 kB / 436.9 MB, free: 4.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003358/0.3469, allocations: 2.108 MB / 439 MB, free: 2.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3469, allocations: 4.531 kB / 439 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000116/0.347, allocations: 127.5 kB / 439.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.3476, allocations: 264.4 kB / 439.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008032/0.3484, allocations: 235.7 kB / 439.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00762/0.356, allocations: 13.25 MB / 452.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.3577, allocations: 124 kB / 453 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.3578, allocations: 60 kB / 453 MB, free: 3.375 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007978/0.3586, allocations: 438 kB / 453.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.3589, allocations: 375.5 kB / 453.8 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005039/0.364, allocations: 2.342 MB / 456.2 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.364, allocations: 12 kB / 456.2 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.364, allocations: 4 kB / 456.2 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.364, allocations: 7.984 kB / 456.2 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.366, allocations: 1.548 MB / 457.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001317/0.3661, allocations: 116 kB / 457.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.3669, allocations: 171.8 kB / 458 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006166/0.3675, allocations: 257.6 kB / 458.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.584e-05/0.3676, allocations: 43.98 kB / 458.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008359/0.376, allocations: 13.25 MB / 471.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.376, allocations: 3.938 kB / 471.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005583/0.3816, allocations: 2.744 MB / 474.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009937/0.3826, allocations: 0.4887 MB / 474.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.3829, allocations: 23.98 kB / 474.8 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009808/0.3839, allocations: 107.9 kB / 474.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.3842, allocations: 144.8 kB / 475.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-05/0.3843, allocations: 51.97 kB / 475.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.3866, allocations: 1.782 MB / 476.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3866, allocations: 0 / 476.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001521/0.3881, allocations: 0.6599 MB / 477.6 MB, free: 9.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0066/0.3947, allocations: 4.02 MB / 481.6 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.3988, allocations: 2.643 MB / 484.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3988, allocations: 4.062 kB / 484.2 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.4013, allocations: 2.016 MB / 486.3 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.4035, allocations: 491.4 kB / 486.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04331/0.4468, allocations: 23.74 MB / 0.4985 GB, free: 6.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.448, allocations: 1.662 MB / 0.5001 GB, free: 4.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001504/0.4495, allocations: 399.3 kB / 0.5005 GB, free: 4.047 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/0.4507, allocations: 1.194 MB / 0.5017 GB, free: 2.852 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4508, allocations: 0 / 0.5017 GB, free: 2.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.6878, allocations: 63.94 MB / 0.5641 GB, free: 104.7 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001268/0.688, allocations: 216.7 kB / 0.5643 GB, free: 104.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.683/4.371, allocations: 3.938 kB / 0.5643 GB, free: 104.5 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches