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.001109/0.001109, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001468/0.001468, allocations: 167.9 kB / 24.99 MB, free: 8.758 MB / 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 0.9905/0.9905, allocations: 177.1 MB / 205.3 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.382e-06/1.382e-06, allocations: 0 / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.965e-05/3.103e-05, allocations: 2.312 kB / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003237/0.003268, allocations: 2.9 MB / 276 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.00474, allocations: 0.7438 MB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.004911, allocations: 7.938 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.005076, allocations: 63.44 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.005303, allocations: 83.19 kB / 276.9 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.005672, allocations: 103.7 kB / 277 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.006024, allocations: 390.1 kB / 277.3 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.006196, allocations: 79.69 kB / 277.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.006397, allocations: 211.5 kB / 277.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.006572, allocations: 115.7 kB / 277.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.006617, allocations: 28 kB / 277.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.289e-05/0.00665, allocations: 32 kB / 277.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.128e-05/0.006701, allocations: 71.73 kB / 277.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.583e-05/0.006797, allocations: 123.7 kB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.007057, allocations: 247.1 kB / 278.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.007061, allocations: 0 / 278.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.007062, allocations: 0 / 278.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.007068, allocations: 0 / 278.2 MB, free: 12.61 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.0008034/0.007871, allocations: 0.6299 MB / 278.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.007911, allocations: 15.97 kB / 278.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.403e-05/0.008005, allocations: 64.7 kB / 278.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.008272, allocations: 216.7 kB / 279.2 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.664e-05/0.008369, allocations: 128 kB / 279.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.008407, allocations: 28.38 kB / 279.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.008744, allocations: 323 kB / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.008753, allocations: 192 / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.008776, allocations: 16.12 kB / 279.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.008786, allocations: 8 kB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.008962, allocations: 119.8 kB / 279.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.01006, allocations: 1.095 MB / 280.9 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.01028, allocations: 123.1 kB / 281 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.954e-05/0.01036, allocations: 66.84 kB / 281 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.01038, allocations: 4 kB / 281 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/0.01058, allocations: 198.5 kB / 281.2 MB, free: 9.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.01058, allocations: 4 kB / 281.2 MB, free: 9.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005791/0.01116, allocations: 257.3 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.01121, allocations: 106.8 kB / 281.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.01135, allocations: 254.7 kB / 281.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.01137, allocations: 33.7 kB / 281.9 MB, free: 8.664 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.01152, allocations: 227.2 kB / 282.1 MB, free: 8.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.01157, allocations: 79.38 kB / 282.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/0.01163, allocations: 63.22 kB / 282.2 MB, free: 8.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.01175, allocations: 0.5001 MB / 282.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.89e-05/0.01182, allocations: 39.97 kB / 282.8 MB, free: 7.738 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.01195, allocations: 193.1 kB / 283 MB, free: 7.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.01211, allocations: 170.8 kB / 283.1 MB, free: 7.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01211, allocations: 0 / 283.1 MB, free: 7.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003128/0.01242, allocations: 251.2 kB / 283.4 MB, free: 7.039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.01244, allocations: 8 kB / 283.4 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01244, allocations: 3.938 kB / 283.4 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.01264, allocations: 43.88 kB / 283.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.01278, allocations: 59.91 kB / 283.5 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009386/0.01372, allocations: 1.978 MB / 285.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.01383, allocations: 39.95 kB / 285.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.01385, allocations: 11.94 kB / 285.5 MB, free: 4.773 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 9.763e-05/0.01394, allocations: 176.5 kB / 285.7 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.01397, allocations: 23.91 kB / 285.7 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.913e-05/0.014, allocations: 25.95 kB / 285.7 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.014, allocations: 7.938 kB / 285.8 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.014, allocations: 0 / 285.8 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.01401, allocations: 4 kB / 285.8 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.01417, allocations: 220.5 kB / 286 MB, free: 4.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.01418, allocations: 0 / 286 MB, free: 4.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.213e-05/0.01427, allocations: 31.98 kB / 286 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.01437, allocations: 43.64 kB / 286 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.01439, allocations: 4 kB / 286.1 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007014/0.01509, allocations: 1.759 MB / 287.8 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.01509, allocations: 0 / 287.8 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.0154, allocations: 279.5 kB / 288.1 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.01545, allocations: 35.78 kB / 288.1 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.01547, allocations: 4.156 kB / 288.1 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.482e-05/0.01554, allocations: 19.98 kB / 288.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/0.01561, allocations: 27.94 kB / 288.2 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.01562, allocations: 12 kB / 288.2 MB, free: 1.918 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.475e-05/0.01569, allocations: 173.4 kB / 288.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.01569, allocations: 0 / 288.3 MB, free: 1.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002293/0.01592, allocations: 87.78 kB / 288.4 MB, free: 1.664 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.05e-05/0.01601, allocations: 114.9 kB / 288.5 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.01636, allocations: 309 kB / 288.8 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01636, allocations: 0 / 288.8 MB, free: 1.227 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.01653, allocations: 241.4 kB / 289.1 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.01673, allocations: 39.86 kB / 289.1 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.01793, allocations: 0.5772 MB / 289.7 MB, free: 328 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.835e-05/0.01798, allocations: 84.31 kB / 289.8 MB, free: 224 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.652e-05/0.01805, allocations: 25.94 kB / 289.8 MB, free: 196 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.01809, allocations: 24.5 kB / 289.8 MB, free: 172 kB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01809, allocations: 0 / 289.8 MB, free: 172 kB / 266.7 MB Notification: Performance of Templates: time 0.004798/0.02288, allocations: 2.931 MB / 292.8 MB, free: 13.29 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","",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.957980672828853]