Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_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.001278/0.001278, allocations: 107 kB / 16.92 MB, free: 5.77 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.001863/0.001863, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.25/2.25, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 51.45 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1215, allocations: 49.44 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02305/0.1446, allocations: 14.18 MB / 364.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2656/0.4102, allocations: 20.3 MB / 384.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.4133, allocations: 69.94 kB / 384.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004741/0.4181, allocations: 1.114 MB / 385.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01713/0.4353, allocations: 2.291 MB / 388.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01378/0.4491, allocations: 1.439 MB / 389.5 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.4695, allocations: 6.398 MB / 395.9 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.4709, allocations: 436.2 kB / 396.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002634/0.4735, allocations: 1.048 MB / 397.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00258/0.4761, allocations: 1.078 MB / 398.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006027/0.4768, allocations: 76.88 kB / 398.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009148/0.4859, allocations: 1.477 MB / 400.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006197/0.4866, allocations: 327.5 kB / 400.4 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.4894, allocations: 1.328 MB / 401.7 MB, free: 392 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008734/0.4981, allocations: 3.651 MB / 405.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4981, allocations: 0 / 405.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4982, allocations: 0 / 405.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001269/0.4983, allocations: 0 / 405.4 MB, free: 13.54 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.009708/0.508, allocations: 3.573 MB / 408.9 MB, free: 9.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.5081, allocations: 8.031 kB / 408.9 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002406/0.5084, allocations: 98.5 kB / 409 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008944/0.5093, allocations: 375.5 kB / 409.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/0.5162, allocations: 2.544 MB / 411.9 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-05/0.5162, allocations: 33 kB / 412 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002345/0.5165, allocations: 55.84 kB / 412 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002669/0.5192, allocations: 0.7577 MB / 412.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.5192, allocations: 0 / 412.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.5193, allocations: 16 kB / 412.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.701e-05/0.5194, allocations: 23.98 kB / 412.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.5228, allocations: 0.8592 MB / 413.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008547/0.5313, allocations: 2.963 MB / 416.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/0.5346, allocations: 0.7909 MB / 417.4 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/0.5373, allocations: 0.9609 MB / 418.4 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05164/0.589, allocations: 30.07 MB / 448.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002038/0.5911, allocations: 0.5918 MB / 449.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 4.448e-06/0.5911, allocations: 0 / 449.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.02254/0.6137, allocations: 5.225 MB / 454.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/0.6138, allocations: 80.25 kB / 454.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006596/0.6204, allocations: 2.696 MB / 457.1 MB, free: 5.176 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.6206, allocations: 41.7 kB / 457.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.6226, allocations: 1.307 MB / 458.4 MB, free: 3.816 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005425/0.6232, allocations: 331.2 kB / 458.7 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006485/0.6238, allocations: 238.2 kB / 459 MB, free: 3.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.624, allocations: 345.9 kB / 459.3 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002378/0.6264, allocations: 474.8 kB / 459.8 MB, free: 2.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002575/0.629, allocations: 0.6431 MB / 460.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004855/0.6339, allocations: 1.137 MB / 461.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.6339, allocations: 0 / 461.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007281/0.6412, allocations: 1.964 MB / 463.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.6413, allocations: 8.531 kB / 463.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002731/0.6416, allocations: 124 kB / 463.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.6428, allocations: 268.3 kB / 463.9 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.6444, allocations: 205.3 kB / 464.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/0.6596, allocations: 14.24 MB / 478.3 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/0.6623, allocations: 91.95 kB / 478.4 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/0.6627, allocations: 56 kB / 478.5 MB, free: 14.09 MB / 398.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.001514/0.6642, allocations: 425.6 kB / 478.9 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009902/0.6652, allocations: 371.4 kB / 479.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009885/0.6751, allocations: 2.216 MB / 481.5 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.6752, allocations: 8 kB / 481.5 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/0.6752, allocations: 4 kB / 481.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.6752, allocations: 3.984 kB / 481.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.6788, allocations: 1.543 MB / 483 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002599/0.6791, allocations: 120 kB / 483.1 MB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.6805, allocations: 139.7 kB / 483.3 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.6816, allocations: 260.3 kB / 483.5 MB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/0.6818, allocations: 43.98 kB / 483.6 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/0.697, allocations: 14.25 MB / 497.8 MB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.6971, allocations: 0 / 497.8 MB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009899/0.707, allocations: 2.551 MB / 0.4887 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/0.7086, allocations: 492.5 kB / 0.4891 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007721/0.7094, allocations: 20 kB / 0.4891 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002071/0.7115, allocations: 79.89 kB / 0.4892 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005766/0.7121, allocations: 144.8 kB / 0.4894 GB, free: 5.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001747/0.7123, allocations: 47.92 kB / 0.4894 GB, free: 5.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004864/0.7172, allocations: 1.77 MB / 0.4911 GB, free: 3.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.7172, allocations: 4 kB / 0.4911 GB, free: 3.938 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00287/0.7201, allocations: 0.6483 MB / 0.4918 GB, free: 3.289 MB / 414.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.01234/0.7324, allocations: 3.833 MB / 0.4955 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008403/0.7409, allocations: 2.534 MB / 0.498 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.7409, allocations: 0 / 0.498 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004785/0.7457, allocations: 1.964 MB / 0.4999 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005455/0.7512, allocations: 0.6245 MB / 0.5005 GB, free: 9.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05806/0.8093, allocations: 22.42 MB / 0.5224 GB, free: 1.578 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.222/1.031, allocations: 1.653 MB / 0.524 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003461/1.035, allocations: 395.5 kB / 0.5244 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002192/1.037, allocations: 1.194 MB / 0.5256 GB, free: 152.1 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/1.037, allocations: 0 / 0.5256 GB, free: 152.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/1.349, allocations: 65.93 MB / 0.59 GB, free: 104 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.93/22.28, allocations: 2.656 kB / 0.59 GB, free: 104 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches