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.001771/0.001771, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001909/0.001909, allocations: 197.3 kB / 18 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 47.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2501, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01465/0.2648, allocations: 14.18 MB / 414.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02491/0.2898, allocations: 20.31 MB / 434.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002419/0.2922, allocations: 122.9 kB / 434.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003/0.2953, allocations: 1.115 MB / 436 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007166/0.3025, allocations: 2.293 MB / 438.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004537/0.307, allocations: 1.436 MB / 439.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.3171, allocations: 6.418 MB / 446.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007938/0.3179, allocations: 436.4 kB / 446.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.3196, allocations: 1.073 MB / 447.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.3209, allocations: 1.075 MB / 448.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002077/0.3211, allocations: 76 kB / 448.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.3252, allocations: 1.479 MB / 450.2 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003794/0.3256, allocations: 325.7 kB / 450.5 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.3271, allocations: 1.324 MB / 451.9 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005737/0.3328, allocations: 3.702 MB / 455.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3329, allocations: 0 / 455.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.019e-06/0.3329, allocations: 0 / 455.6 MB, free: 1.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.389e-05/0.333, allocations: 3.938 kB / 455.6 MB, free: 1.219 MB / 366.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.005601/0.3386, allocations: 3.681 MB / 459.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.3386, allocations: 12.03 kB / 459.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001279/0.3388, allocations: 94.45 kB / 459.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004756/0.3393, allocations: 401.5 kB / 459.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003878/0.3431, allocations: 2.555 MB / 462.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.3432, allocations: 33 kB / 462.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.3433, allocations: 51.95 kB / 462.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.3449, allocations: 0.7616 MB / 463.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.345, allocations: 0 / 463.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.486e-05/0.345, allocations: 23.98 kB / 463.2 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.3451, allocations: 19.98 kB / 463.2 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.3469, allocations: 0.8514 MB / 464 MB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005605/0.3526, allocations: 2.97 MB / 467 MB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.3545, allocations: 0.7833 MB / 467.8 MB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/0.3561, allocations: 0.9604 MB / 468.8 MB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03269/0.3888, allocations: 30.07 MB / 498.8 MB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001235/0.3901, allocations: 0.588 MB / 499.4 MB, free: 1.004 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.955e-06/0.3901, allocations: 0 / 499.4 MB, free: 1.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0131/0.4032, allocations: 5.289 MB / 0.4929 GB, free: 11.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.4033, allocations: 64.41 kB / 0.4929 GB, free: 11.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.4069, allocations: 2.696 MB / 0.4956 GB, free: 8.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.407, allocations: 41.7 kB / 0.4956 GB, free: 8.633 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.4082, allocations: 1.308 MB / 0.4969 GB, free: 7.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003501/0.4086, allocations: 357 kB / 0.4972 GB, free: 6.969 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003753/0.409, allocations: 230.5 kB / 0.4974 GB, free: 6.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4091, allocations: 345.9 kB / 0.4978 GB, free: 6.391 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.4105, allocations: 486 kB / 0.4982 GB, free: 5.914 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.4119, allocations: 0.647 MB / 0.4989 GB, free: 5.207 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002688/0.4146, allocations: 1.122 MB / 0.5 GB, free: 4.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.4146, allocations: 4 kB / 0.5 GB, free: 4.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004345/0.419, allocations: 2.005 MB / 0.5019 GB, free: 1.938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.419, allocations: 6.656 kB / 0.5019 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/0.4192, allocations: 116 kB / 0.502 GB, free: 1.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007288/0.42, allocations: 268.8 kB / 0.5023 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008785/0.4208, allocations: 191.7 kB / 0.5025 GB, free: 1.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.4319, allocations: 14.25 MB / 0.5164 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.4334, allocations: 91.95 kB / 0.5165 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001602/0.4336, allocations: 56 kB / 0.5165 GB, free: 1.543 MB / 446.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.0009469/0.4346, allocations: 429.5 kB / 0.517 GB, free: 1.113 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005346/0.4351, allocations: 389.6 kB / 0.5173 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005057/0.4402, allocations: 2.211 MB / 0.5195 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.4402, allocations: 15.98 kB / 0.5195 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.4402, allocations: 7.984 kB / 0.5195 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4403, allocations: 3.984 kB / 0.5195 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.4424, allocations: 1.543 MB / 0.521 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000154/0.4426, allocations: 112 kB / 0.5211 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.4433, allocations: 139.8 kB / 0.5213 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006745/0.444, allocations: 264.3 kB / 0.5215 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-05/0.4441, allocations: 43.98 kB / 0.5216 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2021/0.6463, allocations: 14.24 MB / 0.5355 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6463, allocations: 0 / 0.5355 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006001/0.6523, allocations: 2.563 MB / 0.538 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009328/0.6533, allocations: 0.5081 MB / 0.5385 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003571/0.6537, allocations: 22.84 kB / 0.5385 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/0.6546, allocations: 80.75 kB / 0.5386 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/0.655, allocations: 136.9 kB / 0.5387 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.082e-05/0.6551, allocations: 46.36 kB / 0.5387 GB, free: 131.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002041/0.6571, allocations: 1.778 MB / 0.5405 GB, free: 131.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.6571, allocations: 2.438 kB / 0.5405 GB, free: 131.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001492/0.6586, allocations: 0.6515 MB / 0.5411 GB, free: 131.4 MB / 462.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.00579/0.6644, allocations: 3.842 MB / 0.5449 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003475/0.6679, allocations: 2.517 MB / 0.5473 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6679, allocations: 0 / 0.5473 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002124/0.6701, allocations: 1.964 MB / 0.5492 GB, free: 126.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/0.6725, allocations: 0.6109 MB / 0.5498 GB, free: 126.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0231/0.6956, allocations: 18.23 MB / 0.5676 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007679/0.6964, allocations: 1.662 MB / 0.5693 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001074/0.6975, allocations: 385.8 kB / 0.5696 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009006/0.6984, allocations: 1.194 MB / 0.5708 GB, free: 105.3 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6984, allocations: 4 kB / 0.5708 GB, free: 105.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/0.8163, allocations: 66.54 MB / 0.6358 GB, free: 39.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/18.23, allocations: 11.69 kB / 0.6358 GB, free: 39.14 MB / 462.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