Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001964/0.001964, allocations: 98.66 kB / 21.93 MB, free: 5.207 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.002508/0.002508, allocations: 202.7 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 207.7 MB / 236.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 55.92 kB / 348.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2755, allocations: 49.15 MB / 397.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003448/0.2789, allocations: 2.63 MB / 400.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2801, allocations: 0.7547 MB / 401 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2802, allocations: 5.156 kB / 401 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.2804, allocations: 49.3 kB / 401 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.2805, allocations: 93.08 kB / 401.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.2809, allocations: 103.4 kB / 401.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003696/0.2812, allocations: 376.1 kB / 401.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2814, allocations: 84.45 kB / 401.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.2816, allocations: 144 kB / 401.8 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.2818, allocations: 130.7 kB / 401.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-05/0.2818, allocations: 29.59 kB / 402 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/0.2819, allocations: 31.5 kB / 402 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.653e-05/0.282, allocations: 69.55 kB / 402.1 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.2821, allocations: 146.3 kB / 402.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.2825, allocations: 368.8 kB / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2825, allocations: 0 / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2825, allocations: 0 / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.2825, allocations: 1.094 kB / 402.6 MB, free: 6.32 MB / 318.1 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.0008908/0.2834, allocations: 0.5376 MB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2835, allocations: 17.52 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.665e-05/0.2835, allocations: 34.91 kB / 403.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.2839, allocations: 203.8 kB / 403.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.922e-05/0.2839, allocations: 129.9 kB / 403.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.284, allocations: 30.33 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.2845, allocations: 348.2 kB / 403.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2845, allocations: 0 / 403.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.2845, allocations: 15.73 kB / 403.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2845, allocations: 11.12 kB / 403.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.2848, allocations: 198.7 kB / 404.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.2862, allocations: 0.9597 MB / 405 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.2865, allocations: 148 kB / 405.2 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.2866, allocations: 71.62 kB / 405.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.2866, allocations: 2.719 kB / 405.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.2869, allocations: 217 kB / 405.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2869, allocations: 3.938 kB / 405.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009813/0.2879, allocations: 300.3 kB / 405.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.2879, allocations: 107 kB / 405.9 MB, free: 4.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.2881, allocations: 204.8 kB / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2881, allocations: 27.89 kB / 406.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-05/0.2882, allocations: 193.8 kB / 406.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.2882, allocations: 65.34 kB / 406.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.011e-05/0.2883, allocations: 60.36 kB / 406.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.194e-05/0.2884, allocations: 340 kB / 406.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.2885, allocations: 65.72 kB / 406.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.2886, allocations: 199.2 kB / 407 MB, free: 3.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.2889, allocations: 187.9 kB / 407.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2889, allocations: 1.844 kB / 407.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004043/0.2893, allocations: 272.4 kB / 407.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2893, allocations: 5.5 kB / 407.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2893, allocations: 2.75 kB / 407.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002606/0.2896, allocations: 57.62 kB / 407.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.2898, allocations: 55.38 kB / 407.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009564/0.2907, allocations: 1.44 MB / 409 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.291, allocations: 37.31 kB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.291, allocations: 8.906 kB / 409.1 MB, free: 1.34 MB / 318.1 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.0001118/0.2911, allocations: 154.1 kB / 409.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.2911, allocations: 26.8 kB / 409.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.245e-05/0.2912, allocations: 25 kB / 409.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-06/0.2912, allocations: 1.375 kB / 409.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2912, allocations: 5.375 kB / 409.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.2912, allocations: 1.172 kB / 409.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.2914, allocations: 216.2 kB / 409.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2914, allocations: 5.891 kB / 409.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.2916, allocations: 30.11 kB / 409.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.2917, allocations: 51.89 kB / 409.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.2917, allocations: 6.922 kB / 409.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009194/0.2927, allocations: 1.292 MB / 410.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2927, allocations: 0.6562 kB / 410.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.2933, allocations: 337.4 kB / 411.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.2934, allocations: 39.66 kB / 411.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.2934, allocations: 6.375 kB / 411.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.2936, allocations: 17.36 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.2937, allocations: 38.19 kB / 411.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.2937, allocations: 5.594 kB / 411.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.2939, allocations: 141.4 kB / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2939, allocations: 0 / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.2942, allocations: 78.91 kB / 411.5 MB, free: 15.36 MB / 334.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: 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.0001357/0.2944, allocations: 108 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.2949, allocations: 280.5 kB / 411.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2949, allocations: 0 / 411.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.2952, allocations: 192.6 kB / 412.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2955, allocations: 37.39 kB / 412.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2972, allocations: 0.6936 MB / 412.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.2973, allocations: 150.8 kB / 413 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.121e-05/0.2974, allocations: 19.97 kB / 413 MB, free: 14.42 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2974, allocations: 1.062 kB / 413 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Templates: time 0.006953/0.3043, allocations: 4.205 MB / 417.2 MB, free: 12.46 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.603583025280386]