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.002072/0.002072, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002124/0.002124, allocations: 160.8 kB / 24.27 MB, free: 156 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.54/1.54, allocations: 177 MB / 204.5 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] 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.014e-06/2.014e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.808e-05/4.01e-05, allocations: 2.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.008217/0.008257, allocations: 2.866 MB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.01109, allocations: 0.7476 MB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002179/0.01131, allocations: 4 kB / 275.8 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002935/0.0116, allocations: 59.44 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.01197, allocations: 99.05 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.01254, allocations: 103.7 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000762/0.0133, allocations: 386.2 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.01359, allocations: 79.67 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004343/0.01403, allocations: 215.5 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.01435, allocations: 123.7 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.738e-05/0.01444, allocations: 28 kB / 276.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.01454, allocations: 32 kB / 276.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.01467, allocations: 67.75 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.01493, allocations: 115.8 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007932/0.01572, allocations: 382.7 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.01573, allocations: 0 / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.01573, allocations: 0 / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.01574, allocations: 0 / 277.5 MB, free: 12.51 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.001787/0.01752, allocations: 0.6491 MB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.178e-05/0.0176, allocations: 11.98 kB / 278.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.01781, allocations: 68.69 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.01839, allocations: 208.8 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.0186, allocations: 128 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.451e-05/0.0187, allocations: 28.38 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.01971, allocations: 374.3 kB / 278.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.01974, allocations: 4.188 kB / 278.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.522e-05/0.01979, allocations: 16.12 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.0198, allocations: 4 kB / 279 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.02051, allocations: 190.5 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003389/0.0239, allocations: 1.17 MB / 280.3 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.02453, allocations: 162.9 kB / 280.5 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.0248, allocations: 75.66 kB / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.02484, allocations: 4 kB / 280.5 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005751/0.02542, allocations: 223.5 kB / 280.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 3.086e-06/0.02542, allocations: 3.938 kB / 280.8 MB, free: 8.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001786/0.02721, allocations: 312.6 kB / 281.1 MB, free: 8.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.02734, allocations: 106.8 kB / 281.2 MB, free: 8.539 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004852/0.02783, allocations: 282.7 kB / 281.5 MB, free: 8.246 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.02789, allocations: 29.7 kB / 281.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000293/0.02818, allocations: 243.1 kB / 281.7 MB, free: 7.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.02832, allocations: 75.42 kB / 281.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.02853, allocations: 75.17 kB / 281.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004247/0.02895, allocations: 0.5079 MB / 282.4 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.02922, allocations: 67.97 kB / 282.4 MB, free: 7.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005008/0.02972, allocations: 229.9 kB / 282.7 MB, free: 6.945 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006637/0.03038, allocations: 218.8 kB / 282.9 MB, free: 6.699 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.03039, allocations: 3.984 kB / 282.9 MB, free: 6.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009917/0.03138, allocations: 287.3 kB / 283.2 MB, free: 6.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.03141, allocations: 4 kB / 283.2 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.03142, allocations: 4 kB / 283.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004351/0.03186, allocations: 55.88 kB / 283.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/0.03231, allocations: 59.89 kB / 283.3 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003117/0.03542, allocations: 2.043 MB / 285.3 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004077/0.03583, allocations: 39.86 kB / 285.4 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.03587, allocations: 12 kB / 285.4 MB, free: 4.066 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.0003355/0.03621, allocations: 192.4 kB / 285.6 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-05/0.0363, allocations: 27.91 kB / 285.6 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.592e-05/0.0364, allocations: 25.95 kB / 285.6 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.03642, allocations: 7.938 kB / 285.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.03642, allocations: 0 / 285.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.03643, allocations: 4 kB / 285.6 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005785/0.03701, allocations: 268.5 kB / 285.9 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.03701, allocations: 0 / 285.9 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.03732, allocations: 31.98 kB / 285.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002823/0.03761, allocations: 55.64 kB / 286 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.03763, allocations: 0 / 286 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.04046, allocations: 1.822 MB / 287.8 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.04046, allocations: 0 / 287.8 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.04174, allocations: 347.6 kB / 288.1 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.0419, allocations: 39.78 kB / 288.2 MB, free: 1.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.04196, allocations: 4.156 kB / 288.2 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.04224, allocations: 19.98 kB / 288.2 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.04241, allocations: 31.94 kB / 288.2 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.04244, allocations: 4 kB / 288.2 MB, free: 1.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003223/0.04276, allocations: 197.4 kB / 288.4 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-07/0.04276, allocations: 0 / 288.4 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007495/0.04351, allocations: 79.89 kB / 288.5 MB, free: 0.7344 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 0.0002443/0.04376, allocations: 111.1 kB / 288.6 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.0449, allocations: 361.2 kB / 289 MB, free: 252 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.04491, allocations: 0 / 289 MB, free: 252 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006492/0.04555, allocations: 262.4 kB / 289.2 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005176/0.04607, allocations: 39.84 kB / 289.3 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.04881, allocations: 0.5967 MB / 289.9 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.04906, allocations: 150.9 kB / 290 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.04922, allocations: 17.95 kB / 290 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.04932, allocations: 20.5 kB / 290 MB, free: 15.1 MB / 282.7 MB Notification: Performance of SimCode: time 9.82e-07/0.04932, allocations: 0 / 290 MB, free: 15.1 MB / 282.7 MB Notification: Performance of Templates: time 0.01431/0.06362, allocations: 2.928 MB / 293 MB, free: 12.21 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",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.65516609500628]