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.001527/0.001527, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001705/0.001705, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 7.977 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: 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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2166, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01502/0.2316, allocations: 14.24 MB / 446.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02568/0.2573, allocations: 20.43 MB / 467.1 MB, free: 4.125 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002146/0.2594, allocations: 197.8 kB / 467.2 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003372/0.2628, allocations: 1.127 MB / 468.4 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007862/0.2707, allocations: 2.342 MB / 470.7 MB, free: 452 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00475/0.2754, allocations: 1.453 MB / 472.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.286, allocations: 6.552 MB / 478.7 MB, free: 8.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000654/0.2867, allocations: 249 kB / 479 MB, free: 8.137 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.2886, allocations: 1.136 MB / 480.1 MB, free: 6.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.2904, allocations: 1.091 MB / 481.2 MB, free: 5.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000232/0.2906, allocations: 72 kB / 481.3 MB, free: 5.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004141/0.2948, allocations: 1.479 MB / 482.7 MB, free: 4.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000442/0.2952, allocations: 325.7 kB / 483.1 MB, free: 4.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00174/0.2969, allocations: 1.316 MB / 484.4 MB, free: 2.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005914/0.3029, allocations: 3.71 MB / 488.1 MB, free: 14.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3029, allocations: 0 / 488.1 MB, free: 14.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3029, allocations: 4 kB / 488.1 MB, free: 14.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.645e-05/0.3029, allocations: 3.938 kB / 488.1 MB, free: 14.97 MB / 398.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.005767/0.3087, allocations: 3.606 MB / 491.7 MB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3087, allocations: 8.031 kB / 491.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004825/0.3092, allocations: 397.5 kB / 492.1 MB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004101/0.3133, allocations: 2.386 MB / 494.5 MB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.3134, allocations: 33 kB / 494.5 MB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.3135, allocations: 48 kB / 494.6 MB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.315, allocations: 0.7616 MB / 495.3 MB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.315, allocations: 4 kB / 495.3 MB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.087e-05/0.3151, allocations: 23.98 kB / 495.3 MB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.3151, allocations: 19.98 kB / 495.4 MB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.3169, allocations: 0.8553 MB / 496.2 MB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005552/0.3225, allocations: 2.922 MB / 499.1 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.3242, allocations: 0.7169 MB / 499.9 MB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.3257, allocations: 0.8713 MB / 0.489 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02669/0.3524, allocations: 13.76 MB / 0.5024 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/0.3535, allocations: 0.5996 MB / 0.503 GB, free: 3.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.246e-06/0.3535, allocations: 4 kB / 0.503 GB, free: 3.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01176/0.3653, allocations: 4.525 MB / 0.5074 GB, free: 14.75 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3654, allocations: 60.41 kB / 0.5075 GB, free: 14.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.3689, allocations: 2.696 MB / 0.5101 GB, free: 11.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.3691, allocations: 41.7 kB / 0.5102 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.3704, allocations: 1.315 MB / 0.5115 GB, free: 10.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.3707, allocations: 341.1 kB / 0.5118 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003626/0.3711, allocations: 238.4 kB / 0.512 GB, free: 10.03 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3713, allocations: 345.9 kB / 0.5123 GB, free: 9.684 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.3725, allocations: 478 kB / 0.5128 GB, free: 9.219 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.3739, allocations: 0.647 MB / 0.5134 GB, free: 8.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.3764, allocations: 1.13 MB / 0.5145 GB, free: 7.316 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.3765, allocations: 7.938 kB / 0.5145 GB, free: 7.309 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004178/0.3806, allocations: 1.838 MB / 0.5163 GB, free: 5.426 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.3807, allocations: 4 kB / 0.5163 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001721/0.3808, allocations: 116 kB / 0.5164 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007342/0.3816, allocations: 268.8 kB / 0.5167 GB, free: 5.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008701/0.3824, allocations: 195.6 kB / 0.5169 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.3936, allocations: 13.23 MB / 0.5298 GB, free: 6.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.3952, allocations: 91.95 kB / 0.5299 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/0.3953, allocations: 56 kB / 0.5299 GB, free: 6.309 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.0009703/0.3963, allocations: 430.1 kB / 0.5304 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005496/0.3969, allocations: 393.5 kB / 0.5307 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004819/0.4017, allocations: 2.048 MB / 0.5327 GB, free: 3.406 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.4017, allocations: 15.98 kB / 0.5327 GB, free: 3.391 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.4017, allocations: 4 kB / 0.5328 GB, free: 3.387 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.4017, allocations: 7.969 kB / 0.5328 GB, free: 3.379 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.4039, allocations: 1.511 MB / 0.5342 GB, free: 1.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001608/0.404, allocations: 116 kB / 0.5343 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/0.4047, allocations: 143.7 kB / 0.5345 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006792/0.4054, allocations: 260.3 kB / 0.5347 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.4055, allocations: 43.98 kB / 0.5348 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.196/0.6015, allocations: 13.22 MB / 0.5477 GB, free: 92.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.6015, allocations: 2 kB / 0.5477 GB, free: 92.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/0.6064, allocations: 2.403 MB / 0.55 GB, free: 92.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009403/0.6074, allocations: 439.5 kB / 0.5505 GB, free: 92.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000309/0.6077, allocations: 21.17 kB / 0.5505 GB, free: 92.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00091/0.6086, allocations: 84.83 kB / 0.5506 GB, free: 92.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003601/0.6089, allocations: 144.9 kB / 0.5507 GB, free: 92.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.93e-05/0.609, allocations: 47.61 kB / 0.5507 GB, free: 92.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.6111, allocations: 1.775 MB / 0.5525 GB, free: 91.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6111, allocations: 0 / 0.5525 GB, free: 91.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001422/0.6125, allocations: 0.6526 MB / 0.5531 GB, free: 91.32 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.0009393/0.6135, allocations: 0.8122 MB / 0.5539 GB, free: 91.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00315/0.6166, allocations: 2.452 MB / 0.5563 GB, free: 89.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6166, allocations: 3.875 kB / 0.5563 GB, free: 89.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.6185, allocations: 1.9 MB / 0.5582 GB, free: 88.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.6206, allocations: 0.6179 MB / 0.5588 GB, free: 87.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/0.6258, allocations: 4.823 MB / 0.5635 GB, free: 85.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.6265, allocations: 1.661 MB / 0.5651 GB, free: 84.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.6268, allocations: 175.4 kB / 0.5653 GB, free: 84 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.6268, allocations: 0 / 0.5653 GB, free: 84 MB / 446.1 MB Notification: Performance of Templates: time 0.1202/0.747, allocations: 154.4 MB / 0.716 GB, free: 9.598 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.33089592284523]