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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 120.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002059/0.002059, allocations: 186.9 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 47.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.101, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01432/0.1154, allocations: 14.23 MB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1999/0.3153, allocations: 20.35 MB / 452.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.3172, allocations: 125 kB / 452.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00259/0.3198, allocations: 1.136 MB / 453.6 MB, free: 6.824 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006704/0.3265, allocations: 2.307 MB / 455.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004719/0.3312, allocations: 1.447 MB / 457.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.3415, allocations: 6.435 MB / 463.8 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007105/0.3422, allocations: 253.6 kB / 464 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001851/0.3441, allocations: 1.099 MB / 465.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001815/0.3459, allocations: 1.082 MB / 466.2 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.3462, allocations: 74.53 kB / 466.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004884/0.3511, allocations: 1.476 MB / 467.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005419/0.3516, allocations: 321.5 kB / 468.1 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.3537, allocations: 1.321 MB / 469.4 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006997/0.3607, allocations: 3.711 MB / 473.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3607, allocations: 1.031 kB / 473.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3607, allocations: 0 / 473.1 MB, free: 1.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001173/0.3608, allocations: 0 / 473.1 MB, free: 1.895 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.007653/0.3685, allocations: 3.677 MB / 476.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.3685, allocations: 10.16 kB / 476.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000175/0.3687, allocations: 101.7 kB / 476.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009068/0.3696, allocations: 399.5 kB / 477.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005087/0.3747, allocations: 2.553 MB / 479.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.3747, allocations: 35.72 kB / 479.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.3749, allocations: 52.47 kB / 479.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.3765, allocations: 0.7627 MB / 480.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3765, allocations: 4.781 kB / 480.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.3766, allocations: 16.19 kB / 480.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.057e-05/0.3766, allocations: 24.33 kB / 480.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.3784, allocations: 0.8518 MB / 481.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006539/0.3849, allocations: 2.978 MB / 484.6 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.3866, allocations: 0.7176 MB / 485.3 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.388, allocations: 0.863 MB / 486.2 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03597/0.424, allocations: 30.06 MB / 0.5041 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001216/0.4252, allocations: 0.594 MB / 0.5047 GB, free: 8.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.336e-06/0.4252, allocations: 4 kB / 0.5047 GB, free: 8.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01296/0.4382, allocations: 5.268 MB / 0.5098 GB, free: 3.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.4382, allocations: 64.41 kB / 0.5099 GB, free: 3.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/0.4423, allocations: 2.7 MB / 0.5125 GB, free: 384 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.4424, allocations: 41.7 kB / 0.5126 GB, free: 336 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.4437, allocations: 1.306 MB / 0.5139 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003569/0.4441, allocations: 352.8 kB / 0.5142 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/0.4445, allocations: 234.4 kB / 0.5144 GB, free: 14.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.4447, allocations: 349.9 kB / 0.5148 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.4459, allocations: 478 kB / 0.5152 GB, free: 13.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.4473, allocations: 0.6477 MB / 0.5158 GB, free: 12.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002517/0.4498, allocations: 1.126 MB / 0.5169 GB, free: 11.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4498, allocations: 4 kB / 0.5169 GB, free: 11.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004303/0.4541, allocations: 1.977 MB / 0.5189 GB, free: 9.668 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.4541, allocations: 8 kB / 0.5189 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/0.4543, allocations: 124 kB / 0.519 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007266/0.455, allocations: 267.6 kB / 0.5193 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008491/0.4559, allocations: 197.6 kB / 0.5194 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.4675, allocations: 14.26 MB / 0.5334 GB, free: 9.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.4697, allocations: 87.97 kB / 0.5335 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/0.47, allocations: 67.92 kB / 0.5335 GB, free: 9.289 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.00103/0.471, allocations: 417.7 kB / 0.5339 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006667/0.4716, allocations: 390.3 kB / 0.5343 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.4768, allocations: 2.217 MB / 0.5365 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.4768, allocations: 8 kB / 0.5365 GB, free: 6.188 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4768, allocations: 4 kB / 0.5365 GB, free: 6.184 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4768, allocations: 7.969 kB / 0.5365 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.4794, allocations: 1.551 MB / 0.538 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001622/0.4795, allocations: 112 kB / 0.5381 GB, free: 4.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007105/0.4802, allocations: 135.8 kB / 0.5382 GB, free: 4.352 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006612/0.4809, allocations: 272.3 kB / 0.5385 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.499e-05/0.481, allocations: 43.98 kB / 0.5385 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.4925, allocations: 14.25 MB / 0.5524 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4925, allocations: 4.031 kB / 0.5524 GB, free: 4.363 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/0.4983, allocations: 2.549 MB / 0.5549 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.4998, allocations: 0.5024 MB / 0.5554 GB, free: 1.203 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/0.5002, allocations: 23.98 kB / 0.5554 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009452/0.5011, allocations: 79.89 kB / 0.5555 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.5015, allocations: 140.8 kB / 0.5557 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.5016, allocations: 47.98 kB / 0.5557 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.5042, allocations: 1.772 MB / 0.5574 GB, free: 15.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5042, allocations: 4 kB / 0.5574 GB, free: 15.13 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001848/0.506, allocations: 0.6557 MB / 0.5581 GB, free: 14.48 MB / 478.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.007227/0.5132, allocations: 3.829 MB / 0.5618 GB, free: 10.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004415/0.5177, allocations: 2.456 MB / 0.5642 GB, free: 8.09 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5177, allocations: 0 / 0.5642 GB, free: 8.09 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.5206, allocations: 1.9 MB / 0.5661 GB, free: 6.043 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.5236, allocations: 0.6143 MB / 0.5667 GB, free: 5.422 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0345/0.5581, allocations: 18.22 MB / 0.5845 GB, free: 2.766 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001755/0.5599, allocations: 1.654 MB / 0.5861 GB, free: 1.082 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001467/0.5613, allocations: 391.4 kB / 0.5865 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/0.563, allocations: 1.199 MB / 0.5876 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/0.563, allocations: 0 / 0.5876 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3655/0.9284, allocations: 66.89 MB / 0.6529 GB, free: 184.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/18.6, allocations: 6.609 kB / 0.6529 GB, free: 184.8 MB / 0.5294 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.979106856975704]