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.0009576/0.0009576, allocations: 75.75 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.001006/0.001006, allocations: 171.4 kB / 25.33 MB, free: 9.469 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.9306/0.9306, allocations: 158.6 MB / 187.2 MB, free: 2.527 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 3.517e-06/3.517e-06, allocations: 0 / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.36e-05/3.712e-05, allocations: 2.312 kB / 251 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01462/0.01466, allocations: 12.91 MB / 263.9 MB, free: 6.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02191/0.03656, allocations: 18.48 MB / 282.4 MB, free: 4.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003508/0.04007, allocations: 193.8 kB / 282.6 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003783/0.04385, allocations: 1.009 MB / 283.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008568/0.05242, allocations: 2.374 MB / 286 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005392/0.05782, allocations: 1.402 MB / 287.4 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.06968, allocations: 6.62 MB / 294 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.07082, allocations: 249 kB / 294.2 MB, free: 8.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003551/0.07437, allocations: 1.407 MB / 295.7 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.07572, allocations: 0.7514 MB / 296.4 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002186/0.07594, allocations: 76 kB / 296.5 MB, free: 5.922 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/0.08022, allocations: 1.089 MB / 297.6 MB, free: 4.832 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.08124, allocations: 325.7 kB / 297.9 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.08274, allocations: 0.7281 MB / 298.6 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007143/0.08988, allocations: 2.774 MB / 301.4 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.08989, allocations: 0 / 301.4 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.0899, allocations: 0 / 301.4 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001419/0.09004, allocations: 0 / 301.4 MB, free: 0.9961 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.1364/0.2264, allocations: 3.795 MB / 305.2 MB, free: 43.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/0.2265, allocations: 13.39 kB / 305.2 MB, free: 43.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000793/0.2273, allocations: 436.3 kB / 305.6 MB, free: 43.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003845/0.2312, allocations: 2.733 MB / 308.4 MB, free: 42.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.2312, allocations: 34.67 kB / 308.4 MB, free: 42.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2313, allocations: 54.73 kB / 308.4 MB, free: 42.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.2323, allocations: 0.5538 MB / 309 MB, free: 42.44 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2323, allocations: 1.219 kB / 309 MB, free: 42.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.2324, allocations: 20.44 kB / 309 MB, free: 42.44 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/0.2324, allocations: 19.17 kB / 309 MB, free: 42.44 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007081/0.2331, allocations: 485.3 kB / 309.5 MB, free: 42.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004257/0.2374, allocations: 2.738 MB / 312.2 MB, free: 42 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.2382, allocations: 446 kB / 312.7 MB, free: 41.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008242/0.239, allocations: 0.6222 MB / 313.3 MB, free: 41.81 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/0.2542, allocations: 15.2 MB / 328.5 MB, free: 31.56 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005093/0.2547, allocations: 435.8 kB / 328.9 MB, free: 31.12 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 3.546e-06/0.2547, allocations: 0 / 328.9 MB, free: 31.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.004799/0.2595, allocations: 3.149 MB / 332.1 MB, free: 27.92 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.2595, allocations: 68.41 kB / 332.1 MB, free: 27.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/0.2616, allocations: 2.92 MB / 335.1 MB, free: 24.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.2616, allocations: 45.7 kB / 335.1 MB, free: 24.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006703/0.2623, allocations: 1.474 MB / 336.6 MB, free: 23.39 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001622/0.2625, allocations: 348.5 kB / 336.9 MB, free: 23.05 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.2627, allocations: 240.1 kB / 337.2 MB, free: 22.81 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.454e-05/0.2628, allocations: 0.516 MB / 337.7 MB, free: 22.29 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.263, allocations: 206.2 kB / 337.9 MB, free: 22.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.2634, allocations: 449.3 kB / 338.3 MB, free: 21.56 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000635/0.264, allocations: 0.7082 MB / 339 MB, free: 20.79 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.264, allocations: 3.938 kB / 339 MB, free: 20.78 MB / 282.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001535/0.2656, allocations: 1.367 MB / 340.4 MB, free: 19.4 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.2656, allocations: 8 kB / 340.4 MB, free: 19.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.47e-05/0.2657, allocations: 116 kB / 340.5 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.2661, allocations: 265.2 kB / 340.8 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.2665, allocations: 177.5 kB / 340.9 MB, free: 18.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004483/0.271, allocations: 17.58 MB / 358.5 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.2724, allocations: 59.95 kB / 358.6 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.2725, allocations: 63.98 kB / 358.6 MB, free: 8 kB / 282.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.0004974/0.273, allocations: 218 kB / 358.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.2734, allocations: 421.5 kB / 359.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.2756, allocations: 1.59 MB / 360.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2756, allocations: 8 kB / 360.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/0.2756, allocations: 4 kB / 360.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2756, allocations: 3.984 kB / 360.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.2778, allocations: 1.525 MB / 362.4 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001074/0.2779, allocations: 116 kB / 362.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.2782, allocations: 111.4 kB / 362.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004395/0.2787, allocations: 256 kB / 362.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.391e-05/0.2788, allocations: 43.98 kB / 362.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007564/0.2863, allocations: 17.59 MB / 380.5 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2863, allocations: 0 / 380.5 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.289, allocations: 1.605 MB / 382.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008002/0.2898, allocations: 459.3 kB / 382.6 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.29, allocations: 19.98 kB / 382.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004351/0.2904, allocations: 51.95 kB / 382.6 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/0.2907, allocations: 140.2 kB / 382.8 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-05/0.2908, allocations: 55.92 kB / 382.8 MB, free: 6.566 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001662/0.2924, allocations: 1.618 MB / 384.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2924, allocations: 0 / 384.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001433/0.2939, allocations: 0.6688 MB / 385.1 MB, free: 4.273 MB / 314.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.001396/0.2953, allocations: 0.881 MB / 386 MB, free: 3.535 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.2976, allocations: 2.54 MB / 388.5 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2976, allocations: 0 / 388.5 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.2991, allocations: 2.237 MB / 390.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.3008, allocations: 0.5638 MB / 391.3 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005003/0.3058, allocations: 4.335 MB / 395.7 MB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.3061, allocations: 405.2 kB / 396.1 MB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007752/0.3069, allocations: 399.3 kB / 396.4 MB, free: 8.621 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.3071, allocations: 168.5 kB / 396.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of SimCode: time 2.445e-06/0.3071, allocations: 0 / 396.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of Templates: time 0.05153/0.3586, allocations: 39.55 MB / 436.2 MB, free: 1.008 MB / 362.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.393974672071636]