Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002423/0.002423, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00272/0.00272, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.553/1.553, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.599e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004659/0.004685, allocations: 2.867 MB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.006426, allocations: 0.7399 MB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.006575, allocations: 7.938 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.006774, allocations: 55.48 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.007, allocations: 99.06 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.007349, allocations: 99.69 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004881/0.007837, allocations: 382.2 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.008071, allocations: 87.66 kB / 276.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.008353, allocations: 215.5 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.00857, allocations: 111.7 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.844e-05/0.008638, allocations: 32 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.488e-05/0.008703, allocations: 28 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.008792, allocations: 75.73 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.008957, allocations: 111.8 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004949/0.009452, allocations: 386.7 kB / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.009456, allocations: 0 / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.009457, allocations: 0 / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.009464, allocations: 0 / 277.6 MB, free: 12.53 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.001179/0.01064, allocations: 0.6491 MB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.01068, allocations: 12.03 kB / 278.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.01083, allocations: 60.7 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.01121, allocations: 212.7 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.01135, allocations: 132 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.01141, allocations: 32.36 kB / 278.7 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.01204, allocations: 366.4 kB / 279 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.01205, allocations: 192 / 279 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.01209, allocations: 24.06 kB / 279.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.0121, allocations: 8 kB / 279.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.01251, allocations: 178.5 kB / 279.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.01452, allocations: 1.177 MB / 280.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.01488, allocations: 155.1 kB / 280.6 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.01504, allocations: 75.66 kB / 280.6 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.01506, allocations: 0 / 280.6 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003424/0.0154, allocations: 226.4 kB / 280.9 MB, free: 9.008 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.01541, allocations: 11.94 kB / 280.9 MB, free: 8.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001071/0.01648, allocations: 309.3 kB / 281.2 MB, free: 8.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.567e-05/0.01657, allocations: 106.8 kB / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.01688, allocations: 282.7 kB / 281.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.01693, allocations: 29.7 kB / 281.6 MB, free: 8.227 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.01712, allocations: 235.1 kB / 281.8 MB, free: 7.992 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-05/0.01721, allocations: 83.42 kB / 281.9 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.01733, allocations: 71.17 kB / 282 MB, free: 7.832 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002878/0.01762, allocations: 0.5157 MB / 282.5 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.01796, allocations: 59.97 kB / 282.5 MB, free: 7.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.01826, allocations: 229.1 kB / 282.8 MB, free: 6.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.01861, allocations: 214.8 kB / 283 MB, free: 6.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.01862, allocations: 0 / 283 MB, free: 6.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005328/0.01915, allocations: 299.2 kB / 283.3 MB, free: 6.422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.01917, allocations: 8 kB / 283.3 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.01917, allocations: 0 / 283.3 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.01944, allocations: 51.88 kB / 283.3 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.01968, allocations: 59.91 kB / 283.4 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.02162, allocations: 2.048 MB / 285.4 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.02185, allocations: 39.95 kB / 285.5 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.02187, allocations: 12 kB / 285.5 MB, free: 4.082 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.0002047/0.02208, allocations: 192.5 kB / 285.7 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.02212, allocations: 23.91 kB / 285.7 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.949e-05/0.02218, allocations: 25.95 kB / 285.7 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.02219, allocations: 7.938 kB / 285.7 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.02219, allocations: 0 / 285.7 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.0222, allocations: 0 / 285.7 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.02256, allocations: 264.5 kB / 286 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.02256, allocations: 0 / 286 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.02274, allocations: 39.92 kB / 286 MB, free: 3.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.02291, allocations: 43.66 kB / 286.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.02294, allocations: 11.98 kB / 286.1 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.0246, allocations: 1.822 MB / 287.9 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.0246, allocations: 3.984 kB / 287.9 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006663/0.02527, allocations: 342.7 kB / 288.2 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/0.02536, allocations: 39.77 kB / 288.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.0254, allocations: 8 kB / 288.3 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.02557, allocations: 24.14 kB / 288.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.02568, allocations: 31.94 kB / 288.3 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.0257, allocations: 8 kB / 288.3 MB, free: 1.016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001786/0.02587, allocations: 193.4 kB / 288.5 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02587, allocations: 0 / 288.5 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003772/0.02625, allocations: 75.89 kB / 288.6 MB, free: 0.7539 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.0001647/0.02642, allocations: 107.2 kB / 288.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.02709, allocations: 369.1 kB / 289.1 MB, free: 268 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.02709, allocations: 0 / 289.1 MB, free: 268 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004096/0.0275, allocations: 261.4 kB / 289.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.0278, allocations: 34.42 kB / 289.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.02957, allocations: 0.5965 MB / 290 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.02973, allocations: 146.9 kB / 290.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.653e-05/0.02981, allocations: 25.94 kB / 290.1 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.02987, allocations: 20.5 kB / 290.1 MB, free: 15.12 MB / 282.7 MB Notification: Performance of SimCode: time 6.02e-07/0.02987, allocations: 0 / 290.1 MB, free: 15.12 MB / 282.7 MB Notification: Performance of Templates: time 0.00817/0.03804, allocations: 2.947 MB / 293.1 MB, free: 12.22 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.636213480029255]