Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 123.4 kB / 17.79 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 204.3 kB / 20.74 MB, free: 2.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.0983, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2027/0.301, allocations: 14.23 MB / 440.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02674/0.3277, allocations: 20.41 MB / 461 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003096/0.3308, allocations: 191.2 kB / 461.1 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003862/0.3347, allocations: 1.129 MB / 462.3 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00958/0.3443, allocations: 2.316 MB / 464.6 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00585/0.3501, allocations: 1.439 MB / 466 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.3617, allocations: 6.514 MB / 472.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007167/0.3624, allocations: 257.6 kB / 472.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.3646, allocations: 1.132 MB / 473.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.3666, allocations: 1.078 MB / 475 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002558/0.3668, allocations: 79.59 kB / 475.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004848/0.3717, allocations: 1.489 MB / 476.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004978/0.3722, allocations: 315.4 kB / 476.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002094/0.3743, allocations: 1.326 MB / 478.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007219/0.3815, allocations: 3.702 MB / 481.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3815, allocations: 1.375 kB / 481.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3815, allocations: 0 / 481.9 MB, free: 9.047 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.3816, allocations: 0 / 481.9 MB, free: 9.047 MB / 382.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.006962/0.3886, allocations: 3.698 MB / 485.6 MB, free: 5.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3886, allocations: 8.031 kB / 485.6 MB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.3888, allocations: 98.5 kB / 485.7 MB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006046/0.3894, allocations: 397.5 kB / 486.1 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004316/0.3937, allocations: 2.547 MB / 488.6 MB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.3937, allocations: 37 kB / 488.7 MB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.3939, allocations: 51.98 kB / 488.7 MB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.3955, allocations: 0.7576 MB / 489.5 MB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3955, allocations: 0 / 489.5 MB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.581e-05/0.3956, allocations: 20 kB / 489.5 MB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.3956, allocations: 23.98 kB / 489.5 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.3979, allocations: 0.8514 MB / 490.4 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00579/0.4037, allocations: 2.971 MB / 493.3 MB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.4055, allocations: 0.7229 MB / 494.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.4071, allocations: 0.8589 MB / 494.9 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03509/0.4422, allocations: 30.7 MB / 0.5133 GB, free: 8.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.4436, allocations: 0.5957 MB / 0.5139 GB, free: 8.324 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.296e-06/0.4436, allocations: 0 / 0.5139 GB, free: 8.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01436/0.458, allocations: 5.281 MB / 0.519 GB, free: 2.797 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.4581, allocations: 64.39 kB / 0.5191 GB, free: 2.723 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004403/0.4625, allocations: 2.688 MB / 0.5217 GB, free: 20 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002034/0.4627, allocations: 45.69 kB / 0.5218 GB, free: 15.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.464, allocations: 1.308 MB / 0.5231 GB, free: 14.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004391/0.4644, allocations: 356.9 kB / 0.5234 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000479/0.4649, allocations: 234.4 kB / 0.5236 GB, free: 14.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4651, allocations: 345.9 kB / 0.5239 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.4665, allocations: 478 kB / 0.5244 GB, free: 13.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/0.4681, allocations: 0.6431 MB / 0.525 GB, free: 12.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.471, allocations: 1.134 MB / 0.5261 GB, free: 11.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.471, allocations: 4 kB / 0.5261 GB, free: 11.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004767/0.4757, allocations: 1.981 MB / 0.5281 GB, free: 9.293 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4758, allocations: 8.625 kB / 0.5281 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001826/0.476, allocations: 120.5 kB / 0.5282 GB, free: 9.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000762/0.4767, allocations: 271.9 kB / 0.5285 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009322/0.4776, allocations: 198.3 kB / 0.5286 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.4891, allocations: 14.24 MB / 0.5426 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/0.491, allocations: 91.83 kB / 0.5426 GB, free: 8.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.4912, allocations: 56 kB / 0.5427 GB, free: 8.914 MB / 462.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.001121/0.4924, allocations: 421.7 kB / 0.5431 GB, free: 8.492 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007593/0.4931, allocations: 385.6 kB / 0.5435 GB, free: 8.113 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005643/0.4988, allocations: 2.22 MB / 0.5456 GB, free: 5.812 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.4988, allocations: 8 kB / 0.5456 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.4988, allocations: 4 kB / 0.5456 GB, free: 5.801 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4988, allocations: 7.984 kB / 0.5457 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.5016, allocations: 1.54 MB / 0.5472 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001843/0.5018, allocations: 120 kB / 0.5473 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.5025, allocations: 127.8 kB / 0.5474 GB, free: 3.961 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007193/0.5033, allocations: 268.3 kB / 0.5477 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.5034, allocations: 43.98 kB / 0.5477 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/0.5152, allocations: 14.25 MB / 0.5616 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5152, allocations: 0 / 0.5616 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006644/0.5218, allocations: 2.561 MB / 0.5641 GB, free: 1.328 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/0.5231, allocations: 0.5063 MB / 0.5646 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006391/0.5237, allocations: 23.94 kB / 0.5646 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.5251, allocations: 79.89 kB / 0.5647 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.5255, allocations: 136.8 kB / 0.5648 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.5257, allocations: 59.97 kB / 0.5649 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003051/0.5287, allocations: 1.774 MB / 0.5666 GB, free: 14.72 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5287, allocations: 0 / 0.5666 GB, free: 14.72 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00219/0.5309, allocations: 0.6557 MB / 0.5673 GB, free: 14.07 MB / 494.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.007912/0.5388, allocations: 3.825 MB / 0.571 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004821/0.5437, allocations: 2.44 MB / 0.5734 GB, free: 7.543 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.5437, allocations: 4 kB / 0.5734 GB, free: 7.539 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.5467, allocations: 1.905 MB / 0.5752 GB, free: 5.484 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/0.5501, allocations: 0.6176 MB / 0.5758 GB, free: 4.863 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03641/0.5865, allocations: 18.22 MB / 0.5936 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001717/0.5882, allocations: 1.662 MB / 0.5953 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001337/0.5896, allocations: 391.3 kB / 0.5956 GB, free: 112 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/0.5911, allocations: 1.194 MB / 0.5968 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of SimCode: time 1.183e-06/0.5911, allocations: 4 kB / 0.5968 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3348/0.9259, allocations: 66.9 MB / 0.6621 GB, free: 141.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.68/18.6, allocations: 10.56 kB / 0.6622 GB, free: 141.9 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.929049652069807]