Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001876/0.001876, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002334/0.002334, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 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.488/1.488, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 43.92 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.263, allocations: 53.36 MB / 432.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004483/0.2674, allocations: 2.933 MB / 435.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2689, allocations: 0.7828 MB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.269, allocations: 11.94 kB / 436.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.2692, allocations: 59.42 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.2694, allocations: 95.06 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.2698, allocations: 127.7 kB / 436.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.2703, allocations: 422.2 kB / 436.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.2705, allocations: 100.3 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.2708, allocations: 167.4 kB / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.271, allocations: 183.2 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.598e-05/0.2711, allocations: 36 kB / 437.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.2712, allocations: 36 kB / 437.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.323e-05/0.2713, allocations: 79.7 kB / 437.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2714, allocations: 155.3 kB / 437.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.2719, allocations: 435.9 kB / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.2719, allocations: 0 / 437.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2719, allocations: 4 kB / 437.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2719, allocations: 4 kB / 437.9 MB, free: 1.078 MB / 334.1 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.001105/0.273, allocations: 0.5753 MB / 438.5 MB, free: 480 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2731, allocations: 8.031 kB / 438.5 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.2733, allocations: 60.64 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.2737, allocations: 231.5 kB / 438.8 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.2738, allocations: 128 kB / 438.9 MB, free: 0 / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/0.2739, allocations: 36.42 kB / 439 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.2745, allocations: 390.2 kB / 439.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2745, allocations: 0 / 439.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.2746, allocations: 16 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2746, allocations: 8 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.275, allocations: 222.5 kB / 439.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.2768, allocations: 1.19 MB / 440.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.2772, allocations: 162.4 kB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.2773, allocations: 84.81 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2774, allocations: 4 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.2777, allocations: 212.2 kB / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.2777, allocations: 0 / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001153/0.2788, allocations: 326.5 kB / 441.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.2789, allocations: 110.8 kB / 441.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.2792, allocations: 241 kB / 441.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.2792, allocations: 33.7 kB / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.2794, allocations: 228.2 kB / 442.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.2794, allocations: 59.5 kB / 442.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.2795, allocations: 69.97 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.2797, allocations: 330.8 kB / 442.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.2799, allocations: 76.62 kB / 442.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.2801, allocations: 228.9 kB / 442.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.2805, allocations: 235.5 kB / 443.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.2805, allocations: 4 kB / 443.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007128/0.2812, allocations: 336.4 kB / 443.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2812, allocations: 7.938 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2812, allocations: 4 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002693/0.2815, allocations: 57.12 kB / 443.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.2818, allocations: 67.84 kB / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.2832, allocations: 1.438 MB / 445 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.2835, allocations: 51.92 kB / 445.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.2835, allocations: 12 kB / 445.1 MB, free: 9.418 MB / 350.1 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 0.0001665/0.2836, allocations: 153.7 kB / 445.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.378e-05/0.2837, allocations: 27.81 kB / 445.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.2837, allocations: 26.28 kB / 445.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2837, allocations: 4 kB / 445.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2838, allocations: 7.922 kB / 445.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2838, allocations: 0 / 445.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.284, allocations: 229.2 kB / 445.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.284, allocations: 0 / 445.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.2842, allocations: 43.91 kB / 445.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/0.2844, allocations: 52.75 kB / 445.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.2844, allocations: 4 kB / 445.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.2857, allocations: 1.307 MB / 446.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2857, allocations: 0 / 446.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/0.2864, allocations: 349.3 kB / 447.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.629e-05/0.2865, allocations: 52 kB / 447.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.2865, allocations: 0 / 447.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.2867, allocations: 19.98 kB / 447.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.283e-05/0.2868, allocations: 27.89 kB / 447.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.2868, allocations: 15.92 kB / 447.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.287, allocations: 168.5 kB / 447.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.287, allocations: 0 / 447.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.2874, allocations: 91.78 kB / 447.6 MB, free: 6.699 MB / 350.1 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.0001188/0.2875, allocations: 107.2 kB / 447.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006138/0.2881, allocations: 303.9 kB / 448 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2881, allocations: 0 / 448 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.2885, allocations: 198.5 kB / 448.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.2887, allocations: 39.69 kB / 448.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.2903, allocations: 0.6727 MB / 448.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.2905, allocations: 164.8 kB / 449.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2906, allocations: 30.27 kB / 449.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.2906, allocations: 19.44 kB / 449.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2906, allocations: 0 / 449.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of Templates: time 0.007856/0.2985, allocations: 3.332 MB / 452.5 MB, free: 1.82 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.761934205991565]