Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001108/0.001108, allocations: 84.25 kB / 22.22 MB, free: 2.281 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.004327/0.004327, allocations: 168.7 kB / 25.61 MB, free: 8.875 MB / 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 0.9317/0.9317, allocations: 177 MB / 205.9 MB, free: 4.441 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.527e-05, allocations: 3.281 kB / 274.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003309/0.003335, allocations: 3.129 MB / 277.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.005162, allocations: 0.8037 MB / 278.1 MB, free: 332 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002401/0.005402, allocations: 11.94 kB / 278.1 MB, free: 320 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.005596, allocations: 63.36 kB / 278.1 MB, free: 256 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.005808, allocations: 100.8 kB / 278.2 MB, free: 156 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.006254, allocations: 131.6 kB / 278.4 MB, free: 24 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.006718, allocations: 437.9 kB / 278.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.006913, allocations: 92.88 kB / 278.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.007308, allocations: 252 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.00752, allocations: 124.3 kB / 279.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.172e-05/0.007571, allocations: 36 kB / 279.3 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.36e-05/0.007655, allocations: 43.98 kB / 279.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.543e-05/0.00772, allocations: 83.67 kB / 279.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.007848, allocations: 135.7 kB / 279.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.008223, allocations: 287 kB / 279.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.008226, allocations: 0 / 279.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.008227, allocations: 0 / 279.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.008234, allocations: 0 / 279.8 MB, free: 14.56 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000833/0.009067, allocations: 0.6869 MB / 280.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.009109, allocations: 8.031 kB / 280.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.009288, allocations: 72.69 kB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.009558, allocations: 228.9 kB / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.162e-05/0.00965, allocations: 136 kB / 280.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.009694, allocations: 32.36 kB / 281 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.01006, allocations: 330.7 kB / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.01007, allocations: 8.125 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.0101, allocations: 16.12 kB / 281.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.01011, allocations: 8 kB / 281.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.01028, allocations: 100.4 kB / 281.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.01166, allocations: 1.358 MB / 282.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.01187, allocations: 131 kB / 282.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.31e-05/0.01193, allocations: 39.67 kB / 282.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.01195, allocations: 11.98 kB / 283 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.01214, allocations: 186.8 kB / 283.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.904e-06/0.01214, allocations: 4 kB / 283.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006192/0.01276, allocations: 229.3 kB / 283.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.01281, allocations: 106.8 kB / 283.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.01303, allocations: 288.1 kB / 283.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.01305, allocations: 29.7 kB / 283.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.0132, allocations: 266.9 kB / 284 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.01325, allocations: 71.42 kB / 284.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-05/0.01334, allocations: 75.59 kB / 284.2 MB, free: 9.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.01349, allocations: 0.5117 MB / 284.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.035e-05/0.01355, allocations: 32.62 kB / 284.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.0137, allocations: 220.4 kB / 284.9 MB, free: 9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.0139, allocations: 206.9 kB / 285.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01391, allocations: 0 / 285.2 MB, free: 8.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003914/0.0143, allocations: 267.3 kB / 285.4 MB, free: 8.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.01431, allocations: 8 kB / 285.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.01432, allocations: 0 / 285.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.01446, allocations: 51.58 kB / 285.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.01464, allocations: 64.06 kB / 285.5 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.01571, allocations: 1.95 MB / 287.5 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.01587, allocations: 39.77 kB / 287.5 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.01589, allocations: 12 kB / 287.5 MB, free: 6.242 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001235/0.01602, allocations: 188.5 kB / 287.7 MB, free: 6.047 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.01606, allocations: 39.8 kB / 287.8 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.01609, allocations: 22.28 kB / 287.8 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.01609, allocations: 4 kB / 287.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.0161, allocations: 0 / 287.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.0161, allocations: 3.984 kB / 287.8 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.01629, allocations: 193 kB / 288 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.01629, allocations: 3.984 kB / 288 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.01641, allocations: 35.98 kB / 288 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.01652, allocations: 43.64 kB / 288.1 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.01653, allocations: 4 kB / 288.1 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008481/0.01738, allocations: 1.733 MB / 289.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.01738, allocations: 3.984 kB / 289.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.01774, allocations: 255.7 kB / 290 MB, free: 3.547 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.0178, allocations: 35.83 kB / 290.1 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.01783, allocations: 4 kB / 290.1 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.01793, allocations: 19.92 kB / 290.1 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.018, allocations: 28.03 kB / 290.1 MB, free: 3.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.01801, allocations: 12 kB / 290.1 MB, free: 3.449 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001017/0.01811, allocations: 189.1 kB / 290.3 MB, free: 3.266 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01811, allocations: 0 / 290.3 MB, free: 3.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000347/0.01846, allocations: 95.78 kB / 290.4 MB, free: 3.172 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 9.857e-05/0.01856, allocations: 103.2 kB / 290.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003581/0.01891, allocations: 307.9 kB / 290.8 MB, free: 2.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-06/0.01891, allocations: 4.062 kB / 290.8 MB, free: 2.742 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.01909, allocations: 233.4 kB / 291.1 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.01931, allocations: 30.38 kB / 291.1 MB, free: 2.465 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.02049, allocations: 0.6118 MB / 291.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.159e-05/0.02055, allocations: 96.3 kB / 291.8 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.343e-05/0.02063, allocations: 30.22 kB / 291.8 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.02076, allocations: 118.2 kB / 291.9 MB, free: 1.562 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02076, allocations: 0 / 291.9 MB, free: 1.562 MB / 266.7 MB Notification: Performance of Templates: time 0.005976/0.02673, allocations: 3.225 MB / 295.2 MB, free: 14.4 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.799156544264406]