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.0009399/0.0009399, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.0009305/0.0009305, allocations: 190 kB / 18.07 MB, free: 5.414 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.227/1.227, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001093/0.001093, allocations: 47.92 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.09317, allocations: 46.63 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01274/0.1059, allocations: 13.43 MB / 340.1 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0213/0.1273, allocations: 19.51 MB / 359.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.1298, allocations: 67.44 kB / 359.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.1327, allocations: 0.9466 MB / 360.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006836/0.1396, allocations: 1.891 MB / 362.5 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004468/0.1441, allocations: 1.153 MB / 363.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009617/0.1537, allocations: 6.179 MB / 369.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006098/0.1543, allocations: 405 kB / 370.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001222/0.1556, allocations: 0.9288 MB / 371.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008679/0.1564, allocations: 1.036 MB / 372.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.1566, allocations: 52 kB / 372.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004065/0.1607, allocations: 1.132 MB / 373.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003037/0.161, allocations: 301.7 kB / 373.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.1621, allocations: 1.304 MB / 375 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00406/0.1662, allocations: 3.607 MB / 378.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1662, allocations: 3.984 kB / 378.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1662, allocations: 0 / 378.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.469e-05/0.1663, allocations: 0 / 378.6 MB, free: 0.625 MB / 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.1676/0.3339, allocations: 3.581 MB / 382.2 MB, free: 53.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.3339, allocations: 11.16 kB / 382.2 MB, free: 53.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.3341, allocations: 99.19 kB / 382.3 MB, free: 53.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005059/0.3346, allocations: 379.9 kB / 382.7 MB, free: 53.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00357/0.3382, allocations: 2.558 MB / 385.2 MB, free: 52.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.3382, allocations: 32.72 kB / 385.3 MB, free: 52.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.3383, allocations: 53.22 kB / 385.3 MB, free: 52.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3398, allocations: 0.7624 MB / 386.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3399, allocations: 5.266 kB / 386.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.504e-05/0.3399, allocations: 17.17 kB / 386.1 MB, free: 52.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.34, allocations: 20.39 kB / 386.1 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.3417, allocations: 0.856 MB / 387 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.3467, allocations: 2.988 MB / 390 MB, free: 50.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.3483, allocations: 0.7996 MB / 390.8 MB, free: 50.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.3498, allocations: 0.9525 MB / 391.7 MB, free: 49.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02231/0.3721, allocations: 30.14 MB / 421.9 MB, free: 19.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000997/0.3732, allocations: 0.5957 MB / 422.5 MB, free: 19.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.016e-06/0.3732, allocations: 0 / 422.5 MB, free: 19.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01061/0.3838, allocations: 5.232 MB / 427.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.3839, allocations: 64.41 kB / 427.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/0.3865, allocations: 2.717 MB / 430.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.256e-05/0.3866, allocations: 45.7 kB / 430.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007826/0.3874, allocations: 1.296 MB / 431.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.3876, allocations: 331.2 kB / 432.1 MB, free: 9.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003056/0.3879, allocations: 242.2 kB / 432.4 MB, free: 8.941 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.469e-05/0.3879, allocations: 345.9 kB / 432.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.389, allocations: 482 kB / 433.2 MB, free: 8.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.3901, allocations: 0.6431 MB / 433.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.3922, allocations: 1.133 MB / 435 MB, free: 6.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3922, allocations: 0 / 435 MB, free: 6.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003292/0.3955, allocations: 1.984 MB / 436.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3955, allocations: 8 kB / 436.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/0.3957, allocations: 120 kB / 437.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.3963, allocations: 264.4 kB / 437.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007671/0.397, allocations: 195.7 kB / 437.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008107/0.4052, allocations: 13.25 MB / 450.8 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.4068, allocations: 91.95 kB / 450.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.4069, allocations: 56 kB / 450.9 MB, free: 4.859 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.0008281/0.4078, allocations: 438 kB / 451.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/0.4081, allocations: 367.6 kB / 451.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00494/0.4131, allocations: 2.219 MB / 453.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4131, allocations: 8 kB / 453.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4131, allocations: 4 kB / 453.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.4131, allocations: 7.984 kB / 453.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.4153, allocations: 1.551 MB / 455.5 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001429/0.4155, allocations: 120 kB / 455.6 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007107/0.4162, allocations: 131.9 kB / 455.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006386/0.4169, allocations: 272.2 kB / 456 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.69e-05/0.417, allocations: 39.98 kB / 456 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008371/0.4253, allocations: 13.24 MB / 469.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4254, allocations: 0 / 469.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00521/0.4306, allocations: 2.544 MB / 471.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.4316, allocations: 0.4886 MB / 472.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/0.4319, allocations: 23.98 kB / 472.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009075/0.4328, allocations: 83.89 kB / 472.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003563/0.4332, allocations: 136.8 kB / 472.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.4333, allocations: 51.98 kB / 472.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.4357, allocations: 1.79 MB / 474.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4357, allocations: 0 / 474.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001671/0.4374, allocations: 0.6561 MB / 475 MB, free: 11.1 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.00619/0.4436, allocations: 3.833 MB / 478.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003794/0.4474, allocations: 2.51 MB / 481.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4474, allocations: 0 / 481.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.4498, allocations: 1.964 MB / 483.3 MB, free: 2.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.4519, allocations: 493.3 kB / 483.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0445/0.4964, allocations: 23.26 MB / 0.4952 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.4978, allocations: 1.666 MB / 0.4968 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001594/0.4994, allocations: 395.4 kB / 0.4972 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.5006, allocations: 1.198 MB / 0.4984 GB, free: 5.402 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5006, allocations: 0 / 0.4984 GB, free: 5.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.989/3.489, allocations: 64.33 MB / 0.5612 GB, free: 107.4 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/3.49, allocations: 215.2 kB / 0.5614 GB, free: 107.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.475/8.964, allocations: 3.828 kB / 0.5614 GB, free: 107.2 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