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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001849/0.001849, allocations: 215.8 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 230.2 MB / 256.7 MB, free: 8.652 MB / 206.1 MB [Timeout remaining time 88] 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 0.001826/0.001826, allocations: 63.91 kB / 376.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2377, allocations: 53.32 MB / 430.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004718/0.2424, allocations: 3.173 MB / 433.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.244, allocations: 0.8217 MB / 434.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.2441, allocations: 8 kB / 434.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.2443, allocations: 59.42 kB / 434.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.2445, allocations: 103 kB / 434.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.2449, allocations: 131.7 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004587/0.2454, allocations: 426.1 kB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.2456, allocations: 91.77 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.2458, allocations: 163.5 kB / 435.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.2461, allocations: 179.2 kB / 435.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.245e-05/0.2461, allocations: 36 kB / 435.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.2462, allocations: 36 kB / 435.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.578e-05/0.2463, allocations: 79.75 kB / 435.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.2465, allocations: 195 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004995/0.247, allocations: 431.5 kB / 436.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.247, allocations: 4 kB / 436.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.247, allocations: 0 / 436.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.247, allocations: 0 / 436.1 MB, free: 1.73 MB / 334.1 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.001107/0.2481, allocations: 0.6545 MB / 436.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2482, allocations: 16.03 kB / 436.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.2484, allocations: 52.64 kB / 436.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.2488, allocations: 285.4 kB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.34e-05/0.2489, allocations: 80.62 kB / 437.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.2489, allocations: 32.36 kB / 437.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.2495, allocations: 338.9 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2495, allocations: 3.938 kB / 437.6 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.2496, allocations: 16 kB / 437.6 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.2496, allocations: 8 kB / 437.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004563/0.2501, allocations: 218.5 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.252, allocations: 1.368 MB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.2524, allocations: 158.5 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/0.2526, allocations: 84.75 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2526, allocations: 4 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.2529, allocations: 161.3 kB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.502e-06/0.2529, allocations: 0 / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001159/0.254, allocations: 399.6 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/0.2541, allocations: 110.8 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.2544, allocations: 262.7 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.2544, allocations: 33.7 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.2546, allocations: 212.2 kB / 440.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.615e-05/0.2547, allocations: 79.38 kB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.2548, allocations: 58.03 kB / 440.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2549, allocations: 346.7 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.2551, allocations: 76.62 kB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.2554, allocations: 177.5 kB / 441.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.2557, allocations: 235.6 kB / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2557, allocations: 0 / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007199/0.2565, allocations: 352.2 kB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2565, allocations: 4 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2565, allocations: 4 kB / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002769/0.2568, allocations: 57.16 kB / 441.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.257, allocations: 63.91 kB / 442 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.2586, allocations: 1.568 MB / 443.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.2588, allocations: 51.88 kB / 443.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.2589, allocations: 12 kB / 443.6 MB, free: 9.676 MB / 350.1 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.0001737/0.259, allocations: 149.8 kB / 443.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.2591, allocations: 23.86 kB / 443.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.826e-05/0.2591, allocations: 34.11 kB / 443.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2591, allocations: 0 / 443.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.2591, allocations: 0 / 443.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2591, allocations: 7.984 kB / 443.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003715/0.2595, allocations: 345.3 kB / 444.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2595, allocations: 0 / 444.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.2597, allocations: 43.97 kB / 444.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001856/0.2599, allocations: 48.75 kB / 444.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2599, allocations: 12 kB / 444.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.2612, allocations: 1.414 MB / 445.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2612, allocations: 0 / 445.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007563/0.262, allocations: 353.1 kB / 446 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.2621, allocations: 117.1 kB / 446.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.821e-05/0.2621, allocations: 4 kB / 446.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.2623, allocations: 23.92 kB / 446.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.123e-05/0.2624, allocations: 31.89 kB / 446.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.2624, allocations: 8 kB / 446.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002041/0.2626, allocations: 190 kB / 446.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2626, allocations: 0 / 446.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000397/0.263, allocations: 95.72 kB / 446.5 MB, free: 6.559 MB / 350.1 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 0.00015/0.2632, allocations: 111.9 kB / 446.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006532/0.2638, allocations: 298.4 kB / 446.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2638, allocations: 4.688 kB / 446.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.2642, allocations: 202.5 kB / 447.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.2644, allocations: 35.34 kB / 447.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.266, allocations: 0.7146 MB / 447.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.2665, allocations: 0.7714 MB / 448.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.477e-05/0.2665, allocations: 23.44 kB / 448.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2665, allocations: 0 / 448.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of Templates: time 0.007556/0.2741, allocations: 4.69 MB / 453.3 MB, free: 15.64 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches