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.001373/0.001373, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 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.0009953/0.0009953, allocations: 168.9 kB / 25.33 MB, free: 9.441 MB / 18.57 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 0.8424/0.8424, allocations: 158.6 MB / 187.2 MB, free: 2.535 MB / 170.7 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.382e-06/1.382e-06, allocations: 0 / 251 MB, free: 3.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.232e-05/1.371e-05, allocations: 2.312 kB / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008747/0.00876, allocations: 12.9 MB / 263.9 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.02495, allocations: 18.48 MB / 282.4 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001357/0.02631, allocations: 193.8 kB / 282.6 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001723/0.02803, allocations: 1.013 MB / 283.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004248/0.03228, allocations: 2.37 MB / 286 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.03499, allocations: 1.402 MB / 287.4 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005939/0.04092, allocations: 6.62 MB / 294 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004232/0.04135, allocations: 253 kB / 294.3 MB, free: 8.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002454/0.0438, allocations: 2.819 MB / 297.1 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007994/0.0446, allocations: 0.7826 MB / 297.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.04473, allocations: 76 kB / 297.9 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.04656, allocations: 1.085 MB / 299 MB, free: 3.391 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.04676, allocations: 333.6 kB / 299.3 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006057/0.04736, allocations: 0.7282 MB / 300.1 MB, free: 2.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1134/0.1608, allocations: 2.777 MB / 302.8 MB, free: 30.53 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1608, allocations: 0 / 302.8 MB, free: 30.53 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1608, allocations: 0 / 302.8 MB, free: 30.53 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001172/0.1609, allocations: 1.625 kB / 302.9 MB, free: 30.53 MB / 282.7 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.003734/0.1646, allocations: 3.813 MB / 306.7 MB, free: 28.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1647, allocations: 12.73 kB / 306.7 MB, free: 28.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006/0.1653, allocations: 435.3 kB / 307.1 MB, free: 28.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002728/0.168, allocations: 2.662 MB / 309.8 MB, free: 27.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.168, allocations: 34.08 kB / 309.8 MB, free: 27.34 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.1681, allocations: 59.97 kB / 309.9 MB, free: 27.33 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008478/0.169, allocations: 0.5499 MB / 310.4 MB, free: 27.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.169, allocations: 0.75 kB / 310.4 MB, free: 27.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.169, allocations: 21.41 kB / 310.4 MB, free: 27.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.1691, allocations: 19.31 kB / 310.4 MB, free: 27.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006274/0.1697, allocations: 487.1 kB / 310.9 MB, free: 27.26 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.1728, allocations: 2.735 MB / 313.7 MB, free: 26.83 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006552/0.1734, allocations: 444.3 kB / 314.1 MB, free: 26.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006038/0.174, allocations: 0.62 MB / 314.7 MB, free: 26.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01308/0.1871, allocations: 15.19 MB / 329.9 MB, free: 20.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.1876, allocations: 435.8 kB / 330.3 MB, free: 20.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 3.065e-06/0.1876, allocations: 0.5156 kB / 330.3 MB, free: 20.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.004459/0.192, allocations: 3.151 MB / 333.5 MB, free: 17.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.1921, allocations: 76.05 kB / 333.6 MB, free: 17.17 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.1946, allocations: 2.915 MB / 336.5 MB, free: 14.24 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.1947, allocations: 45.69 kB / 336.5 MB, free: 14.19 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000672/0.1954, allocations: 1.475 MB / 338 MB, free: 12.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.1955, allocations: 342.9 kB / 338.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.1958, allocations: 244.1 kB / 338.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.416e-05/0.1959, allocations: 0.516 MB / 339.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1961, allocations: 206.9 kB / 339.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.1965, allocations: 457.8 kB / 339.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006333/0.1971, allocations: 0.7038 MB / 340.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.1971, allocations: 4 kB / 340.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001371/0.1985, allocations: 1.361 MB / 341.8 MB, free: 8.734 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.1985, allocations: 8 kB / 341.8 MB, free: 8.727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-05/0.1986, allocations: 120 kB / 341.9 MB, free: 8.609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004132/0.199, allocations: 259 kB / 342.2 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.1994, allocations: 181.5 kB / 342.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005382/0.2048, allocations: 17.57 MB / 359.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007145/0.2055, allocations: 71.94 kB / 360 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.602e-05/0.2056, allocations: 56 kB / 360 MB, free: 5.332 MB / 298.7 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.0003463/0.2059, allocations: 220.3 kB / 360.3 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.2062, allocations: 425.5 kB / 360.7 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.2082, allocations: 1.581 MB / 362.3 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.2082, allocations: 12 kB / 362.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2082, allocations: 4 kB / 362.3 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.2082, allocations: 11.92 kB / 362.3 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.2096, allocations: 1.518 MB / 363.8 MB, free: 1.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.99e-05/0.2097, allocations: 116 kB / 363.9 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002858/0.21, allocations: 110.8 kB / 364 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003936/0.2104, allocations: 255.7 kB / 364.3 MB, free: 1.031 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.2105, allocations: 47.98 kB / 364.3 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005934/0.2164, allocations: 17.58 MB / 381.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2164, allocations: 4 kB / 381.9 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.2181, allocations: 1.602 MB / 383.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004842/0.2186, allocations: 456.8 kB / 384 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.2188, allocations: 23.98 kB / 384 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004264/0.2192, allocations: 55.89 kB / 384 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.2195, allocations: 132.8 kB / 384.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.574e-05/0.2196, allocations: 59.97 kB / 384.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001319/0.2209, allocations: 1.614 MB / 385.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2209, allocations: 3 kB / 385.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001093/0.222, allocations: 0.6674 MB / 386.5 MB, free: 9.594 MB / 330.7 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.000873/0.2228, allocations: 0.8823 MB / 387.4 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.2245, allocations: 2.54 MB / 389.9 MB, free: 6.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2245, allocations: 0 / 389.9 MB, free: 6.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2257, allocations: 2.242 MB / 392.2 MB, free: 3.695 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2268, allocations: 0.5597 MB / 392.7 MB, free: 3.129 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004424/0.2312, allocations: 4.34 MB / 397.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.2315, allocations: 413.2 kB / 397.5 MB, free: 14.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006785/0.2322, allocations: 398.8 kB / 397.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.2324, allocations: 168.5 kB / 398 MB, free: 13.77 MB / 346.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2324, allocations: 0 / 398 MB, free: 13.77 MB / 346.7 MB Notification: Performance of Templates: time 0.1531/0.3855, allocations: 46.17 MB / 444.2 MB, free: 127.1 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.007511029951274]