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.001225/0.001225, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001359/0.001359, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 7.949 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 47.86 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2537, allocations: 53.36 MB / 431.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01417/0.2678, allocations: 11.98 MB / 443.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02516/0.293, allocations: 17.57 MB / 461.4 MB, free: 9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002204/0.2952, allocations: 189.8 kB / 461.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.298, allocations: 1.034 MB / 462.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007548/0.3056, allocations: 2.324 MB / 464.9 MB, free: 5.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.3101, allocations: 1.418 MB / 466.4 MB, free: 4.012 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3213, allocations: 6.536 MB / 472.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006545/0.3219, allocations: 257 kB / 473.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001749/0.3237, allocations: 1.14 MB / 474.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.325, allocations: 1.087 MB / 475.4 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.3252, allocations: 76 kB / 475.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.3285, allocations: 1.237 MB / 476.7 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003731/0.3289, allocations: 321.7 kB / 477 MB, free: 9.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.3301, allocations: 0.9857 MB / 478 MB, free: 8.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004813/0.335, allocations: 3.741 MB / 481.7 MB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.335, allocations: 0 / 481.7 MB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.335, allocations: 0 / 481.7 MB, free: 4.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.208e-05/0.335, allocations: 4 kB / 481.7 MB, free: 4.547 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.005168/0.3402, allocations: 3.606 MB / 485.3 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3403, allocations: 12.03 kB / 485.3 MB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.673e-05/0.3403, allocations: 17 kB / 485.4 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.3404, allocations: 98.5 kB / 485.5 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004258/0.3408, allocations: 393.5 kB / 485.8 MB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003774/0.3446, allocations: 2.378 MB / 488.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/0.3446, allocations: 33 kB / 488.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.3448, allocations: 48 kB / 488.3 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3464, allocations: 0.7616 MB / 489.1 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3464, allocations: 0 / 489.1 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.378e-05/0.3465, allocations: 20 kB / 489.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.3465, allocations: 19.98 kB / 489.1 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3483, allocations: 0.8592 MB / 490 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005311/0.3536, allocations: 2.77 MB / 492.7 MB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.3553, allocations: 0.7207 MB / 493.4 MB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.3568, allocations: 0.8761 MB / 494.3 MB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02569/0.3825, allocations: 13.67 MB / 0.4961 GB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.3837, allocations: 0.5996 MB / 0.4967 GB, free: 9.043 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.357e-06/0.3837, allocations: 0 / 0.4967 GB, free: 9.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01195/0.3956, allocations: 4.525 MB / 0.5011 GB, free: 4.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3957, allocations: 64.41 kB / 0.5012 GB, free: 4.375 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004338/0.4, allocations: 2.696 MB / 0.5038 GB, free: 1.664 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.4002, allocations: 49.64 kB / 0.5038 GB, free: 1.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.4015, allocations: 1.3 MB / 0.5051 GB, free: 312 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.4019, allocations: 353 kB / 0.5054 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004832/0.4024, allocations: 238.4 kB / 0.5057 GB, free: 15.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4026, allocations: 345.9 kB / 0.506 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4039, allocations: 478 kB / 0.5065 GB, free: 14.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.4052, allocations: 0.647 MB / 0.5071 GB, free: 14.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.4078, allocations: 1.137 MB / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.4078, allocations: 0 / 0.5082 GB, free: 13 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004147/0.412, allocations: 1.831 MB / 0.51 GB, free: 11.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.412, allocations: 8 kB / 0.51 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/0.4122, allocations: 124.5 kB / 0.5101 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000821/0.413, allocations: 268.4 kB / 0.5104 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.4139, allocations: 195.7 kB / 0.5105 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.4245, allocations: 13.19 MB / 0.5234 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.426, allocations: 87.89 kB / 0.5235 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/0.4262, allocations: 64.12 kB / 0.5236 GB, free: 12.03 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.0009824/0.4272, allocations: 425 kB / 0.524 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000664/0.4279, allocations: 401.5 kB / 0.5244 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004998/0.4329, allocations: 2.048 MB / 0.5264 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.4329, allocations: 12 kB / 0.5264 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/0.4329, allocations: 4 kB / 0.5264 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4329, allocations: 7.922 kB / 0.5264 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002546/0.4354, allocations: 1.39 MB / 0.5277 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000172/0.4356, allocations: 112 kB / 0.5279 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007252/0.4363, allocations: 139.8 kB / 0.528 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000738/0.4371, allocations: 260.3 kB / 0.5282 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.4372, allocations: 47.97 kB / 0.5283 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1954/0.6326, allocations: 13.18 MB / 0.5411 GB, free: 97.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6326, allocations: 2.359 kB / 0.5411 GB, free: 97.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.6376, allocations: 2.408 MB / 0.5435 GB, free: 97.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009168/0.6385, allocations: 435 kB / 0.5439 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.6389, allocations: 21.62 kB / 0.5439 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009491/0.6398, allocations: 84.58 kB / 0.544 GB, free: 97.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/0.6402, allocations: 149.5 kB / 0.5442 GB, free: 97.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.6403, allocations: 52.2 kB / 0.5442 GB, free: 97.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002311/0.6426, allocations: 1.77 MB / 0.5459 GB, free: 97.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6426, allocations: 0 / 0.5459 GB, free: 97.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001594/0.6442, allocations: 0.6568 MB / 0.5466 GB, free: 97.01 MB / 446.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.005625/0.6499, allocations: 3.671 MB / 0.5502 GB, free: 95.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003229/0.6531, allocations: 2.45 MB / 0.5526 GB, free: 93.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.6531, allocations: 0 / 0.5526 GB, free: 93.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.655, allocations: 1.907 MB / 0.5544 GB, free: 91.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.6574, allocations: 0.6223 MB / 0.555 GB, free: 91.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/0.6783, allocations: 17.91 MB / 0.5725 GB, free: 73.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/0.679, allocations: 1.096 MB / 0.5736 GB, free: 72.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001027/0.6801, allocations: 391.2 kB / 0.574 GB, free: 72.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000906/0.681, allocations: 1.194 MB / 0.5751 GB, free: 70.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.681, allocations: 0 / 0.5751 GB, free: 70.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/0.7983, allocations: 70.57 MB / 0.644 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/19.31, allocations: 11.66 kB / 0.6441 GB, free: 0.9883 MB / 446.1 MB " [Timeout remaining time 640] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.430721842916682]