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.001259/0.001259, allocations: 84.77 kB / 21.43 MB, free: 296 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.001507/0.001507, allocations: 163.6 kB / 24.7 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.297/1.297, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.492e-05, allocations: 2.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01451/0.01453, allocations: 11.41 MB / 310.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.169/0.1836, allocations: 16.73 MB / 327.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.1852, allocations: 196.3 kB / 327.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.1881, allocations: 1.015 MB / 328.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008303/0.1964, allocations: 2.369 MB / 330.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004839/0.2013, allocations: 1.397 MB / 332.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.2115, allocations: 6.484 MB / 338.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006209/0.2121, allocations: 251.6 kB / 338.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.2143, allocations: 1.414 MB / 340.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.2154, allocations: 0.7484 MB / 340.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002286/0.2156, allocations: 75.47 kB / 341 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004066/0.2197, allocations: 1.095 MB / 342.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003618/0.2201, allocations: 321.2 kB / 342.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.2214, allocations: 0.7239 MB / 343.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004101/0.2255, allocations: 3.716 MB / 346.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2255, allocations: 7.938 kB / 346.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2255, allocations: 0 / 346.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.152e-05/0.2256, allocations: 0 / 346.9 MB, free: 8.41 MB / 302.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.004345/0.2299, allocations: 3.587 MB / 350.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2299, allocations: 12.92 kB / 350.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.2303, allocations: 402.5 kB / 350.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002986/0.2333, allocations: 2.391 MB / 353.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.2333, allocations: 37 kB / 353.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.2334, allocations: 51.95 kB / 353.3 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.2348, allocations: 0.7704 MB / 354.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.2348, allocations: 0 / 354.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.352e-05/0.2348, allocations: 20 kB / 354.1 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.2349, allocations: 19.98 kB / 354.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.2365, allocations: 0.8553 MB / 355 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005128/0.2416, allocations: 2.686 MB / 357.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.2435, allocations: 0.7198 MB / 358.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.2451, allocations: 0.8664 MB / 359.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02759/0.2727, allocations: 13.69 MB / 373 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001362/0.2741, allocations: 0.6023 MB / 373.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 3.206e-06/0.2741, allocations: 0 / 373.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.01427/0.2883, allocations: 4.523 MB / 378.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.2884, allocations: 68.41 kB / 378.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.2923, allocations: 2.725 MB / 380.9 MB, free: 7.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.2924, allocations: 37.7 kB / 380.9 MB, free: 7.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.2937, allocations: 1.305 MB / 382.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003488/0.2941, allocations: 346.3 kB / 382.6 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/0.2944, allocations: 234.4 kB / 382.8 MB, free: 5.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.2946, allocations: 341.9 kB / 383.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/0.2961, allocations: 482 kB / 383.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.2976, allocations: 0.6509 MB / 384.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003009/0.3006, allocations: 1.133 MB / 385.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3006, allocations: 0 / 385.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004661/0.3053, allocations: 1.835 MB / 387.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3053, allocations: 8 kB / 387.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/0.3055, allocations: 120.5 kB / 387.3 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/0.3062, allocations: 271.2 kB / 387.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009608/0.3072, allocations: 195.6 kB / 387.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.3185, allocations: 12.97 MB / 400.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.3203, allocations: 87.89 kB / 400.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/0.3205, allocations: 60.12 kB / 400.9 MB, free: 2.328 MB / 350.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.0009229/0.3214, allocations: 422.3 kB / 401.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005355/0.3219, allocations: 401.4 kB / 401.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/0.3273, allocations: 2.066 MB / 403.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.3273, allocations: 8 kB / 403.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.3273, allocations: 4 kB / 403.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.3273, allocations: 7.984 kB / 403.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.3295, allocations: 1.307 MB / 405.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001601/0.3296, allocations: 112 kB / 405.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008116/0.3304, allocations: 135.7 kB / 405.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007349/0.3312, allocations: 264.3 kB / 405.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.3313, allocations: 47.98 kB / 405.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.3428, allocations: 12.97 MB / 418.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3428, allocations: 0 / 418.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006443/0.3493, allocations: 2.411 MB / 421 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.3503, allocations: 435.3 kB / 421.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003256/0.3507, allocations: 16 kB / 421.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.3517, allocations: 87.88 kB / 421.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004084/0.3521, allocations: 148.7 kB / 421.7 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.3523, allocations: 51.97 kB / 421.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002728/0.355, allocations: 1.782 MB / 423.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.355, allocations: 0 / 423.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002095/0.3571, allocations: 0.6557 MB / 424.2 MB, free: 9.871 MB / 382.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.001583/0.3587, allocations: 0.8767 MB / 425.1 MB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004771/0.3634, allocations: 2.444 MB / 427.5 MB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.3635, allocations: 4 kB / 427.5 MB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002958/0.3664, allocations: 1.909 MB / 429.4 MB, free: 4.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.3686, allocations: 0.5207 MB / 430 MB, free: 3.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/0.3763, allocations: 4.552 MB / 434.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.3775, allocations: 1.12 MB / 435.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001309/0.3788, allocations: 395.4 kB / 436 MB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.3792, allocations: 168.5 kB / 436.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of SimCode: time 2.214e-06/0.3792, allocations: 0 / 436.2 MB, free: 13.64 MB / 398.1 MB Notification: Performance of Templates: time 0.07375/0.453, allocations: 39.03 MB / 475.2 MB, free: 6.559 MB / 430.1 MB " [Timeout remaining time 660] 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: 5.970190912485123]