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.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.001795/0.001795, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002327/0.002327, allocations: 212 kB / 24.47 MB, free: 3.547 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.505/1.505, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.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.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: 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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 55.92 kB / 347.7 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2796, allocations: 49.17 MB / 396.8 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01024/0.2898, allocations: 11.41 MB / 408.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02338/0.3132, allocations: 16.74 MB / 425 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003688/0.3169, allocations: 193.3 kB / 425.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004479/0.3213, allocations: 1.001 MB / 426.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.3341, allocations: 2.289 MB / 428.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00691/0.341, allocations: 1.359 MB / 429.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01615/0.3572, allocations: 6.327 MB / 436.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000984/0.3581, allocations: 253.1 kB / 436.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002564/0.3607, allocations: 1.034 MB / 437.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002044/0.3627, allocations: 1.017 MB / 438.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002811/0.363, allocations: 76 kB / 438.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005217/0.3682, allocations: 1.085 MB / 439.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004798/0.3687, allocations: 321.7 kB / 439.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001626/0.3704, allocations: 0.9896 MB / 440.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008359/0.3787, allocations: 3.757 MB / 444.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3787, allocations: 0 / 444.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3787, allocations: 0 / 444.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.084e-05/0.3788, allocations: 4 kB / 444.7 MB, free: 3.168 MB / 350.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.009135/0.3879, allocations: 3.633 MB / 448.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.388, allocations: 19.92 kB / 448.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007825/0.3888, allocations: 401.5 kB / 448.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006502/0.3953, allocations: 2.398 MB / 451.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.3953, allocations: 40.75 kB / 451.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002053/0.3955, allocations: 55.92 kB / 451.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002426/0.398, allocations: 0.7616 MB / 452 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.398, allocations: 0 / 452 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.3981, allocations: 20 kB / 452 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.3981, allocations: 19.98 kB / 452 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002959/0.4011, allocations: 0.8592 MB / 452.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007877/0.409, allocations: 2.686 MB / 455.6 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.4116, allocations: 0.7207 MB / 456.3 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/0.414, allocations: 0.8638 MB / 457.2 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04273/0.4567, allocations: 13.69 MB / 470.8 MB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001869/0.4586, allocations: 0.5957 MB / 471.4 MB, free: 7.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 4.899e-06/0.4586, allocations: 0 / 471.4 MB, free: 7.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01333/0.472, allocations: 4.528 MB / 476 MB, free: 3.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.472, allocations: 72.39 kB / 476 MB, free: 3.125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.476, allocations: 2.721 MB / 478.8 MB, free: 400 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.4761, allocations: 41.7 kB / 478.8 MB, free: 352 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.4777, allocations: 1.312 MB / 480.1 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.4781, allocations: 345.1 kB / 480.4 MB, free: 14.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004053/0.4785, allocations: 234.5 kB / 480.7 MB, free: 14.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.4787, allocations: 345.9 kB / 481 MB, free: 14.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.48, allocations: 474 kB / 481.5 MB, free: 13.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.4815, allocations: 0.647 MB / 482.1 MB, free: 12.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/0.4843, allocations: 1.133 MB / 483.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.4844, allocations: 7.938 kB / 483.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004568/0.4889, allocations: 1.834 MB / 485.1 MB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.4889, allocations: 4 kB / 485.1 MB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/0.4891, allocations: 127.9 kB / 485.2 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.4899, allocations: 268.8 kB / 485.5 MB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009049/0.4908, allocations: 195.7 kB / 485.7 MB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.5022, allocations: 12.97 MB / 498.7 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.5039, allocations: 87.89 kB / 498.7 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.5041, allocations: 56 kB / 498.8 MB, free: 11.1 MB / 414.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.0009758/0.5051, allocations: 434.2 kB / 499.2 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005219/0.5056, allocations: 389.6 kB / 499.6 MB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005176/0.5108, allocations: 2.068 MB / 0.4899 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.5108, allocations: 16 kB / 0.4899 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.5108, allocations: 4 kB / 0.4899 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.5108, allocations: 3.984 kB / 0.4899 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.5129, allocations: 1.305 MB / 0.4912 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00018/0.5131, allocations: 123.9 kB / 0.4913 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007453/0.5139, allocations: 139.8 kB / 0.4915 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006736/0.5145, allocations: 256.3 kB / 0.4917 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.5146, allocations: 47.92 kB / 0.4918 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.5258, allocations: 12.98 MB / 0.5044 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5259, allocations: 0 / 0.5044 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00606/0.5319, allocations: 2.411 MB / 0.5068 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.5332, allocations: 439.3 kB / 0.5072 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/0.5335, allocations: 20 kB / 0.5072 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5345, allocations: 79.89 kB / 0.5073 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/0.5349, allocations: 144.7 kB / 0.5074 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.535, allocations: 51.98 kB / 0.5075 GB, free: 5.035 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002803/0.5378, allocations: 1.786 MB / 0.5092 GB, free: 3.242 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5378, allocations: 0 / 0.5092 GB, free: 3.242 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001707/0.5395, allocations: 0.6596 MB / 0.5099 GB, free: 2.582 MB / 430.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.00136/0.5409, allocations: 0.823 MB / 0.5107 GB, free: 1.754 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004673/0.5456, allocations: 2.44 MB / 0.5131 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5456, allocations: 0 / 0.5131 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002994/0.5486, allocations: 1.905 MB / 0.5149 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.5508, allocations: 0.5247 MB / 0.5154 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007735/0.5585, allocations: 4.778 MB / 0.5201 GB, free: 7.742 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.5597, allocations: 1.116 MB / 0.5212 GB, free: 6.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.561, allocations: 387.4 kB / 0.5216 GB, free: 6.207 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003663/0.5613, allocations: 179.4 kB / 0.5217 GB, free: 6.031 MB / 446.1 MB Notification: Performance of SimCode: time 1.843e-06/0.5613, allocations: 0 / 0.5217 GB, free: 6.031 MB / 446.1 MB Notification: Performance of Templates: time 0.255/0.8163, allocations: 43.04 MB / 0.5638 GB, free: 151.1 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.709963161498308]