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.001347/0.001347, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009033/0.0009033, allocations: 166.1 kB / 24.82 MB, free: 9.258 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.9871/0.9871, allocations: 177 MB / 205.1 MB, free: 5.484 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 2.595e-06/2.595e-06, allocations: 4 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.71e-05/1.97e-05, allocations: 5.266 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006774/0.006793, allocations: 2.867 MB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004329/0.01112, allocations: 0.7516 MB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.0113, allocations: 7.938 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.01146, allocations: 55.42 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.01167, allocations: 91.2 kB / 277.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.01199, allocations: 99.67 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003711/0.01236, allocations: 398 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.01254, allocations: 79.67 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.01279, allocations: 219.5 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.01297, allocations: 111.7 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/0.01302, allocations: 32 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.974e-05/0.01307, allocations: 32 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.01313, allocations: 71.73 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.01323, allocations: 119.7 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003545/0.01678, allocations: 243.1 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01678, allocations: 4 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01679, allocations: 0 / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.01679, allocations: 0 / 278.5 MB, free: 12.03 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.0008311/0.01763, allocations: 0.6338 MB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.01767, allocations: 19.92 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.01778, allocations: 64.7 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.01803, allocations: 204.1 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.72e-05/0.01812, allocations: 132 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.01816, allocations: 28.38 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.01851, allocations: 299 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.01852, allocations: 8.172 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.01855, allocations: 16.12 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.01856, allocations: 4 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.01873, allocations: 92.44 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.01998, allocations: 1.057 MB / 281 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.02019, allocations: 115.1 kB / 281.1 MB, free: 9.184 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.525e-05/0.02027, allocations: 51.59 kB / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.02028, allocations: 0 / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.02049, allocations: 195.4 kB / 281.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.02049, allocations: 4 kB / 281.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006481/0.02114, allocations: 236.6 kB / 281.6 MB, free: 8.656 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.02119, allocations: 106.8 kB / 281.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.02136, allocations: 250.6 kB / 282 MB, free: 8.266 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.02138, allocations: 33.7 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.0215, allocations: 231.1 kB / 282.2 MB, free: 7.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.02157, allocations: 79.36 kB / 282.3 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.888e-05/0.02166, allocations: 59.33 kB / 282.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.02181, allocations: 0.504 MB / 282.9 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.384e-05/0.02187, allocations: 31.97 kB / 282.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.02202, allocations: 189.9 kB / 283.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.02221, allocations: 158.8 kB / 283.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.02221, allocations: 0 / 283.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003293/0.02254, allocations: 223.2 kB / 283.5 MB, free: 6.648 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.02256, allocations: 10.66 kB / 283.5 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.02256, allocations: 3.938 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.02274, allocations: 47.86 kB / 283.5 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.02292, allocations: 59.91 kB / 283.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.02434, allocations: 1.95 MB / 285.5 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.02511, allocations: 39.95 kB / 285.6 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.02515, allocations: 11.94 kB / 285.6 MB, free: 4.414 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.0001428/0.02529, allocations: 180.4 kB / 285.8 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.02534, allocations: 27.91 kB / 285.8 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.02537, allocations: 25.95 kB / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.02538, allocations: 0 / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.02538, allocations: 0 / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.02538, allocations: 7.938 kB / 285.8 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.02557, allocations: 185.1 kB / 286 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.02557, allocations: 0 / 286 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.02567, allocations: 31.98 kB / 286 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.02579, allocations: 43.64 kB / 286.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.0258, allocations: 0 / 286.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008224/0.02662, allocations: 1.736 MB / 287.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02662, allocations: 3.984 kB / 287.8 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.02693, allocations: 249.4 kB / 288.1 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.02699, allocations: 43.7 kB / 288.1 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.02701, allocations: 8 kB / 288.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.979e-05/0.02708, allocations: 16.14 kB / 288.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.02713, allocations: 35.94 kB / 288.2 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.02714, allocations: 0 / 288.2 MB, free: 1.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.0272, allocations: 173.4 kB / 288.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0272, allocations: 0 / 288.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000243/0.02745, allocations: 79.84 kB / 288.4 MB, free: 1.41 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 9.73e-05/0.02754, allocations: 103.2 kB / 288.5 MB, free: 1.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002847/0.02783, allocations: 305 kB / 288.8 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.02783, allocations: 0 / 288.8 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.02797, allocations: 234.4 kB / 289 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.02816, allocations: 47.78 kB / 289.1 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.02941, allocations: 0.5694 MB / 289.6 MB, free: 88 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.588e-05/0.02949, allocations: 84.31 kB / 289.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.374e-05/0.02958, allocations: 25.94 kB / 289.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.02972, allocations: 114.2 kB / 289.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02972, allocations: 0 / 289.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of Templates: time 0.006809/0.03653, allocations: 3.134 MB / 293 MB, free: 12.76 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.753503887914121]