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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 119 kB / 18.45 MB, free: 4.457 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.002183/0.002183, allocations: 189.2 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 207.6 MB / 231.8 MB, free: 4.188 MB / 174.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001703/0.001703, allocations: 55.91 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09886, allocations: 49.11 MB / 391.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01441/0.1133, allocations: 13.57 MB / 404.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02343/0.1367, allocations: 19.44 MB / 424.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.1385, allocations: 126.9 kB / 424.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002859/0.1413, allocations: 1.096 MB / 425.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006973/0.1483, allocations: 2.278 MB / 427.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004424/0.1527, allocations: 1.385 MB / 429.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0104/0.1631, allocations: 6.316 MB / 435.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005943/0.1637, allocations: 248.6 kB / 435.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.1652, allocations: 1.003 MB / 436.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.1666, allocations: 1.056 MB / 437.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.1668, allocations: 76 kB / 437.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003457/0.1702, allocations: 1.163 MB / 439.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003538/0.1706, allocations: 329.6 kB / 439.4 MB, free: 8.465 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001562/0.1721, allocations: 1.327 MB / 440.8 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005944/0.1781, allocations: 3.733 MB / 444.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.1781, allocations: 8 kB / 444.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1781, allocations: 0 / 444.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.482e-05/0.1781, allocations: 0 / 444.5 MB, free: 3.371 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.006209/0.1843, allocations: 3.701 MB / 448.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.1844, allocations: 12.03 kB / 448.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.1845, allocations: 94.5 kB / 448.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004701/0.185, allocations: 405.5 kB / 448.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004225/0.1892, allocations: 2.571 MB / 451.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.1893, allocations: 36.98 kB / 451.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.1894, allocations: 48 kB / 451.3 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.1909, allocations: 0.7577 MB / 452.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1909, allocations: 7.922 kB / 452.1 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.535e-05/0.191, allocations: 20 kB / 452.1 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.191, allocations: 23.98 kB / 452.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.1928, allocations: 0.8514 MB / 453 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005474/0.1983, allocations: 2.987 MB / 456 MB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.2, allocations: 0.7168 MB / 456.7 MB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.2015, allocations: 0.8666 MB / 457.6 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1863/0.3878, allocations: 30.11 MB / 487.7 MB, free: 46.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009861/0.3888, allocations: 0.5876 MB / 488.3 MB, free: 46.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.3888, allocations: 6.094 kB / 488.3 MB, free: 46.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01241/0.4012, allocations: 5.288 MB / 493.6 MB, free: 43.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.4012, allocations: 64.22 kB / 493.6 MB, free: 43.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/0.4049, allocations: 2.716 MB / 496.4 MB, free: 41.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.405, allocations: 44.61 kB / 496.4 MB, free: 41.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4061, allocations: 1.303 MB / 497.7 MB, free: 40.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003037/0.4064, allocations: 352.6 kB / 498 MB, free: 40.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004246/0.4068, allocations: 236.9 kB / 498.3 MB, free: 40.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.4069, allocations: 349.5 kB / 498.6 MB, free: 39.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/0.4086, allocations: 480.8 kB / 499.1 MB, free: 39.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.4103, allocations: 0.6478 MB / 499.7 MB, free: 39.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003465/0.4137, allocations: 1.128 MB / 0.4891 GB, free: 37.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.4137, allocations: 0 / 0.4891 GB, free: 37.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004323/0.4181, allocations: 1.994 MB / 0.4911 GB, free: 35.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4181, allocations: 4 kB / 0.4911 GB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/0.4182, allocations: 120 kB / 0.4912 GB, free: 35.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000587/0.4188, allocations: 268.5 kB / 0.4914 GB, free: 35.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008111/0.4196, allocations: 201.5 kB / 0.4916 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/0.4254, allocations: 14.25 MB / 0.5055 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.4266, allocations: 87.97 kB / 0.5056 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.586e-05/0.4267, allocations: 56 kB / 0.5057 GB, free: 19.52 MB / 382.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.0006812/0.4274, allocations: 429.6 kB / 0.5061 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/0.4277, allocations: 393.5 kB / 0.5065 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003838/0.4316, allocations: 2.223 MB / 0.5086 GB, free: 16.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.4316, allocations: 8 kB / 0.5086 GB, free: 16.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4316, allocations: 4 kB / 0.5087 GB, free: 16.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4316, allocations: 3.984 kB / 0.5087 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.4331, allocations: 1.546 MB / 0.5102 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001225/0.4332, allocations: 124 kB / 0.5103 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000632/0.4338, allocations: 135.7 kB / 0.5104 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005314/0.4343, allocations: 262.9 kB / 0.5107 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.302e-05/0.4344, allocations: 47.92 kB / 0.5107 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006197/0.4406, allocations: 14.25 MB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4406, allocations: 0 / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005574/0.4462, allocations: 2.557 MB / 0.5271 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.4473, allocations: 0.5141 MB / 0.5276 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/0.4476, allocations: 20 kB / 0.5276 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009339/0.4485, allocations: 79.89 kB / 0.5277 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/0.4489, allocations: 136.8 kB / 0.5279 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.449, allocations: 51.98 kB / 0.5279 GB, free: 11.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002533/0.4515, allocations: 1.788 MB / 0.5296 GB, free: 9.328 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4515, allocations: 4 kB / 0.5297 GB, free: 9.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00158/0.4531, allocations: 0.6596 MB / 0.5303 GB, free: 8.664 MB / 398.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.007205/0.4603, allocations: 3.844 MB / 0.534 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004289/0.4646, allocations: 2.448 MB / 0.5364 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4646, allocations: 0 / 0.5364 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002781/0.4674, allocations: 1.905 MB / 0.5383 GB, free: 144 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.4694, allocations: 0.5246 MB / 0.5388 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03092/0.5003, allocations: 18.31 MB / 0.5567 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.5017, allocations: 1.666 MB / 0.5583 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001179/0.5029, allocations: 399.3 kB / 0.5587 GB, free: 10.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.5042, allocations: 1.198 MB / 0.5599 GB, free: 9.562 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5042, allocations: 0 / 0.5599 GB, free: 9.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/0.6595, allocations: 67.27 MB / 0.6256 GB, free: 6.141 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/18.17, allocations: 7.938 kB / 0.6256 GB, free: 6.133 MB / 494.1 MB " [Timeout remaining time 642] (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 --stepSize=0.000997606 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.943697207141668]