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.001682/0.001682, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.00199/0.00199, allocations: 187.5 kB / 24.46 MB, free: 3.863 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.439/1.439, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 47.91 kB / 371.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.262, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01382/0.2758, allocations: 11.98 MB / 435.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2995, allocations: 17.53 MB / 453.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.3017, allocations: 189.8 kB / 453.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003142/0.3048, allocations: 1.031 MB / 454.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007308/0.3121, allocations: 2.328 MB / 456.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004425/0.3166, allocations: 1.41 MB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.3267, allocations: 6.458 MB / 464.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006462/0.3273, allocations: 241 kB / 465 MB, free: 5.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.3291, allocations: 1.143 MB / 466.1 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.3307, allocations: 1.036 MB / 467.1 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002163/0.3309, allocations: 76 kB / 467.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003345/0.3342, allocations: 1.21 MB / 468.4 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000388/0.3346, allocations: 321.7 kB / 468.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.3359, allocations: 0.9741 MB / 469.7 MB, free: 348 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005453/0.3413, allocations: 3.741 MB / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3413, allocations: 4 kB / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3413, allocations: 0 / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.916e-05/0.3414, allocations: 0 / 473.5 MB, free: 12.58 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.005747/0.3471, allocations: 3.609 MB / 477.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3472, allocations: 12.03 kB / 477.1 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004947/0.3477, allocations: 393.5 kB / 477.5 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004271/0.3519, allocations: 2.382 MB / 479.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.352, allocations: 32.98 kB / 479.9 MB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.3521, allocations: 51.95 kB / 479.9 MB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.3537, allocations: 0.7655 MB / 480.7 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3537, allocations: 0 / 480.7 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.3538, allocations: 16 kB / 480.7 MB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.3538, allocations: 19.98 kB / 480.7 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3557, allocations: 0.8592 MB / 481.6 MB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005335/0.3611, allocations: 2.67 MB / 484.3 MB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.3629, allocations: 0.7246 MB / 485 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.3644, allocations: 0.8715 MB / 485.9 MB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02716/0.3916, allocations: 13.63 MB / 499.5 MB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001266/0.3928, allocations: 0.6035 MB / 0.4884 GB, free: 1.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.096e-06/0.3928, allocations: 0 / 0.4884 GB, free: 1.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01256/0.4054, allocations: 4.525 MB / 0.4928 GB, free: 12.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.4055, allocations: 64.41 kB / 0.4929 GB, free: 12.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003785/0.4092, allocations: 2.707 MB / 0.4955 GB, free: 9.941 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.4094, allocations: 41.7 kB / 0.4955 GB, free: 9.895 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/0.4107, allocations: 1.308 MB / 0.4968 GB, free: 8.582 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003988/0.4111, allocations: 352.9 kB / 0.4972 GB, free: 8.234 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003931/0.4115, allocations: 238.4 kB / 0.4974 GB, free: 7.996 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4117, allocations: 341.9 kB / 0.4977 GB, free: 7.656 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.413, allocations: 482 kB / 0.4982 GB, free: 7.188 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4145, allocations: 0.6392 MB / 0.4988 GB, free: 6.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.4172, allocations: 1.137 MB / 0.4999 GB, free: 5.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.4172, allocations: 4 kB / 0.4999 GB, free: 5.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004234/0.4215, allocations: 1.831 MB / 0.5017 GB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.4215, allocations: 8 kB / 0.5017 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/0.4217, allocations: 120.5 kB / 0.5018 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007202/0.4224, allocations: 272.4 kB / 0.5021 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009409/0.4233, allocations: 199.6 kB / 0.5023 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.4343, allocations: 12.98 MB / 0.5149 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.4357, allocations: 87.89 kB / 0.515 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.4359, allocations: 60.06 kB / 0.5151 GB, free: 4.648 MB / 430.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.0008768/0.4368, allocations: 425.6 kB / 0.5155 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005549/0.4373, allocations: 381.6 kB / 0.5159 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.4424, allocations: 2.064 MB / 0.5179 GB, free: 1.742 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.4424, allocations: 8 kB / 0.5179 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.4424, allocations: 7.938 kB / 0.5179 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.4424, allocations: 3.984 kB / 0.5179 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.4444, allocations: 1.293 MB / 0.5191 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001788/0.4445, allocations: 123.9 kB / 0.5193 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000756/0.4453, allocations: 135.8 kB / 0.5194 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.446, allocations: 264.3 kB / 0.5196 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.4461, allocations: 39.98 kB / 0.5197 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.4565, allocations: 12.98 MB / 0.5324 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4565, allocations: 0 / 0.5324 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1782/0.6347, allocations: 2.405 MB / 0.5347 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.6359, allocations: 435.5 kB / 0.5351 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.6363, allocations: 19.44 kB / 0.5351 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.6373, allocations: 82.84 kB / 0.5352 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/0.6376, allocations: 143 kB / 0.5354 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.6377, allocations: 47.05 kB / 0.5354 GB, free: 110.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.6402, allocations: 1.771 MB / 0.5371 GB, free: 109.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6402, allocations: 3.875 kB / 0.5371 GB, free: 109.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001537/0.6417, allocations: 0.6546 MB / 0.5378 GB, free: 109.9 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.001008/0.6427, allocations: 0.8113 MB / 0.5386 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003455/0.6462, allocations: 2.456 MB / 0.541 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.6462, allocations: 0 / 0.541 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.6482, allocations: 1.903 MB / 0.5428 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/0.6504, allocations: 0.6159 MB / 0.5434 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/0.6561, allocations: 4.818 MB / 0.5481 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007143/0.6568, allocations: 1.105 MB / 0.5492 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.6572, allocations: 175.4 kB / 0.5494 GB, free: 102.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6572, allocations: 0 / 0.5494 GB, free: 102.9 MB / 446.1 MB Notification: Performance of Templates: time 0.1155/0.7727, allocations: 155.8 MB / 0.7015 GB, free: 11.59 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.101060296874493]