Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000938/0.000938, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009721/0.0009721, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.006/1.006, allocations: 177 MB / 204.8 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.095e-05/2.235e-05, allocations: 5.266 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003019/0.003041, allocations: 2.902 MB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.004169, allocations: 0.7555 MB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.004301, allocations: 8 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.004447, allocations: 51.5 kB / 276.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.004604, allocations: 95.06 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.004924, allocations: 107.7 kB / 276.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.005225, allocations: 386 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.00539, allocations: 87.66 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.005562, allocations: 215.5 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.005711, allocations: 111.7 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.005752, allocations: 32 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.005786, allocations: 28 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.874e-05/0.005835, allocations: 75.73 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.64e-05/0.005931, allocations: 115.7 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.006169, allocations: 255 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.006172, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006173, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.006178, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006804/0.006858, allocations: 0.6338 MB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.006895, allocations: 11.98 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.006978, allocations: 64.7 kB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.007212, allocations: 212.7 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-05/0.007301, allocations: 128 kB / 279.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.007343, allocations: 32.36 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.007662, allocations: 311.1 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.007671, allocations: 4.125 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.007695, allocations: 20.11 kB / 279.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.007704, allocations: 8 kB / 279.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.007884, allocations: 119.8 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.009145, allocations: 1.091 MB / 280.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.009346, allocations: 131.9 kB / 280.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.336e-05/0.009419, allocations: 51.66 kB / 280.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.009438, allocations: 4 kB / 280.9 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.009616, allocations: 195.5 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.009617, allocations: 3.938 kB / 281.1 MB, free: 8.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005308/0.01015, allocations: 260.7 kB / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.01019, allocations: 106.8 kB / 281.5 MB, free: 8.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.01033, allocations: 254.7 kB / 281.7 MB, free: 8.285 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.01035, allocations: 33.7 kB / 281.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.605e-05/0.01044, allocations: 227.2 kB / 282 MB, free: 8.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.01048, allocations: 75.38 kB / 282 MB, free: 7.945 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/0.01055, allocations: 59.36 kB / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.01066, allocations: 0.5079 MB / 282.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.488e-05/0.01073, allocations: 35.98 kB / 282.6 MB, free: 7.324 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.01086, allocations: 197.9 kB / 282.8 MB, free: 7.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.01103, allocations: 166.8 kB / 283 MB, free: 6.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01103, allocations: 32 / 283 MB, free: 6.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002742/0.0113, allocations: 251.2 kB / 283.3 MB, free: 6.625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.01132, allocations: 7.125 kB / 283.3 MB, free: 6.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.01132, allocations: 4 kB / 283.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/0.01151, allocations: 47.86 kB / 283.3 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.01164, allocations: 55.91 kB / 283.4 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009013/0.01254, allocations: 1.981 MB / 285.3 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.01264, allocations: 31.95 kB / 285.4 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.01265, allocations: 12 kB / 285.4 MB, free: 4.367 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.01276, allocations: 192.3 kB / 285.6 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.01278, allocations: 23.91 kB / 285.6 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.01281, allocations: 21.97 kB / 285.6 MB, free: 4.121 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.01281, allocations: 3.938 kB / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.01281, allocations: 0 / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.01282, allocations: 7.984 kB / 285.6 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.01298, allocations: 220.5 kB / 285.8 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.01298, allocations: 3.984 kB / 285.8 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.03e-05/0.01307, allocations: 35.92 kB / 285.9 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.755e-05/0.01317, allocations: 43.66 kB / 285.9 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.01318, allocations: 0 / 285.9 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009377/0.01412, allocations: 1.755 MB / 287.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01412, allocations: 0 / 287.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.01443, allocations: 271.8 kB / 287.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.01448, allocations: 43.77 kB / 288 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.0145, allocations: 0 / 288 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.482e-05/0.01456, allocations: 20.08 kB / 288 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.01463, allocations: 31.89 kB / 288 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.01464, allocations: 11.98 kB / 288.1 MB, free: 1.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.942e-05/0.01472, allocations: 177.4 kB / 288.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01472, allocations: 0 / 288.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002228/0.01494, allocations: 83.78 kB / 288.3 MB, free: 1.242 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 8.784e-05/0.01503, allocations: 103.2 kB / 288.4 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.01537, allocations: 309.4 kB / 288.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.01537, allocations: 12.06 kB / 288.7 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.01553, allocations: 230.4 kB / 288.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.01573, allocations: 47.89 kB / 289 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.01675, allocations: 0.5729 MB / 289.6 MB, free: 15.9 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.457e-05/0.01679, allocations: 80.33 kB / 289.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.726e-05/0.01685, allocations: 29.92 kB / 289.7 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.01689, allocations: 24.44 kB / 289.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01689, allocations: 0 / 289.7 MB, free: 15.75 MB / 282.7 MB Notification: Performance of Templates: time 0.004745/0.02164, allocations: 2.928 MB / 292.6 MB, free: 12.86 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.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: 2.9953660359606147]