Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009119, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008878/0.0008878, allocations: 149.2 kB / 25.6 MB, free: 8.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9829/0.9829, allocations: 173.4 MB / 202.2 MB, free: 8.305 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.933e-05/2.097e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003006/0.003027, allocations: 3.098 MB / 272.3 MB, free: 6.664 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.004071, allocations: 0.7365 MB / 273 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.004213, allocations: 8.5 kB / 273 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.004362, allocations: 59.42 kB / 273.1 MB, free: 5.859 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.004534, allocations: 114.2 kB / 273.2 MB, free: 5.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.004846, allocations: 111.7 kB / 273.3 MB, free: 5.641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.005185, allocations: 429.9 kB / 273.7 MB, free: 5.219 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.005368, allocations: 101.3 kB / 273.8 MB, free: 5.117 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.005604, allocations: 243.5 kB / 274.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.005759, allocations: 128.1 kB / 274.2 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.0058, allocations: 36 kB / 274.2 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.658e-05/0.005836, allocations: 36 kB / 274.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.603e-05/0.005893, allocations: 83.72 kB / 274.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.66e-05/0.005989, allocations: 131.7 kB / 274.5 MB, free: 4.473 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.006253, allocations: 283 kB / 274.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.006256, allocations: 0 / 274.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.006257, allocations: 0 / 274.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.006262, allocations: 0 / 274.8 MB, free: 4.195 MB / 250.7 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.0006778/0.006939, allocations: 0.6868 MB / 275.5 MB, free: 3.469 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.006975, allocations: 8.031 kB / 275.5 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.007133, allocations: 68.7 kB / 275.5 MB, free: 3.395 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.00738, allocations: 224.9 kB / 275.7 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.219e-05/0.007462, allocations: 128 kB / 275.9 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.007502, allocations: 32.38 kB / 275.9 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.007813, allocations: 326.7 kB / 276.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.007824, allocations: 4.188 kB / 276.2 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.007846, allocations: 20.12 kB / 276.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.007856, allocations: 15.92 kB / 276.3 MB, free: 2.574 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.007983, allocations: 96.44 kB / 276.4 MB, free: 2.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.00907, allocations: 1.358 MB / 277.7 MB, free: 1.031 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.009242, allocations: 123 kB / 277.8 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.382e-05/0.009306, allocations: 48.05 kB / 277.9 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.009322, allocations: 7.953 kB / 277.9 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.009482, allocations: 189.4 kB / 278.1 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.009483, allocations: 4 kB / 278.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004802/0.009963, allocations: 229 kB / 278.3 MB, free: 388 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.01, allocations: 110.8 kB / 278.4 MB, free: 252 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.01016, allocations: 280.1 kB / 278.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.01018, allocations: 29.7 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.01028, allocations: 258.9 kB / 279 MB, free: 15.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.01032, allocations: 79.41 kB / 279 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.01039, allocations: 63.67 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.0105, allocations: 0.5117 MB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.507e-05/0.01054, allocations: 32.62 kB / 279.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.01066, allocations: 228.4 kB / 279.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.01081, allocations: 199.4 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01081, allocations: 4 kB / 280.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002989/0.01111, allocations: 271.3 kB / 280.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.01113, allocations: 8 kB / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.01113, allocations: 0 / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/0.01126, allocations: 43.59 kB / 280.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.0114, allocations: 68.06 kB / 280.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008687/0.01227, allocations: 1.959 MB / 282.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.01263, allocations: 43.77 kB / 282.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.01265, allocations: 12 kB / 282.5 MB, free: 11.9 MB / 266.7 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 9.794e-05/0.01274, allocations: 190.3 kB / 282.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.086e-05/0.01278, allocations: 35.86 kB / 282.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.0128, allocations: 30.2 kB / 282.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.0128, allocations: 0 / 282.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.01281, allocations: 4 kB / 282.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01281, allocations: 0 / 282.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.01296, allocations: 197 kB / 282.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01296, allocations: 0 / 282.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.702e-05/0.01306, allocations: 31.98 kB / 282.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.634e-05/0.01315, allocations: 39.66 kB / 283 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.01317, allocations: 11.98 kB / 283 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006878/0.01386, allocations: 1.729 MB / 284.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01386, allocations: 0 / 284.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.01414, allocations: 253.9 kB / 285 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.0142, allocations: 43.77 kB / 285 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.01422, allocations: 4 kB / 285 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.01429, allocations: 19.92 kB / 285 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.01434, allocations: 27.95 kB / 285.1 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.01435, allocations: 12.08 kB / 285.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.814e-05/0.01443, allocations: 185.1 kB / 285.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01443, allocations: 0 / 285.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002354/0.01467, allocations: 99.72 kB / 285.4 MB, free: 8.836 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: 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.0001051/0.01477, allocations: 107.2 kB / 285.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.01511, allocations: 301.5 kB / 285.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.01512, allocations: 128 / 285.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.01528, allocations: 236.2 kB / 286 MB, free: 8.152 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.01548, allocations: 40.41 kB / 286 MB, free: 8.109 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.01654, allocations: 0.6194 MB / 286.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.574e-05/0.01659, allocations: 88.31 kB / 286.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.873e-05/0.01666, allocations: 26.28 kB / 286.8 MB, free: 7.332 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.824e-05/0.01676, allocations: 110.2 kB / 286.9 MB, free: 7.223 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01676, allocations: 0 / 286.9 MB, free: 7.223 MB / 266.7 MB Notification: Performance of Templates: time 0.005498/0.02226, allocations: 3.221 MB / 290.1 MB, free: 4.047 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.7661270438693464]