Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002053/0.002053, allocations: 81.23 kB / 21.99 MB, free: 4.75 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.002187/0.002187, allocations: 157.8 kB / 25.24 MB, free: 2.742 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.339/1.339, allocations: 158.6 MB / 187 MB, free: 6.34 MB / 174.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [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.001921/0.001921, allocations: 51.92 kB / 299.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.234, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004456/0.2385, allocations: 2.845 MB / 351.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.2399, allocations: 0.7563 MB / 352.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.2401, allocations: 8 kB / 352.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.2403, allocations: 63.36 kB / 352.2 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.2405, allocations: 111 kB / 352.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.2409, allocations: 107.8 kB / 352.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004918/0.2413, allocations: 422 kB / 352.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.2416, allocations: 100.2 kB / 352.9 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.2418, allocations: 171.4 kB / 353.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.2421, allocations: 155.2 kB / 353.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.97e-05/0.2421, allocations: 36 kB / 353.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.354e-05/0.2422, allocations: 36 kB / 353.3 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.432e-05/0.2423, allocations: 71.77 kB / 353.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2425, allocations: 167.3 kB / 353.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.243, allocations: 416.7 kB / 353.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.243, allocations: 7.984 kB / 353.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.243, allocations: 0 / 353.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.243, allocations: 0 / 353.9 MB, free: 10.06 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001129/0.2441, allocations: 0.5792 MB / 354.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2441, allocations: 11.98 kB / 354.5 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.006e-05/0.2442, allocations: 44.66 kB / 354.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.2447, allocations: 223.5 kB / 354.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.2448, allocations: 132 kB / 354.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.339e-05/0.2449, allocations: 36.36 kB / 355 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006598/0.2455, allocations: 390.2 kB / 355.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.2455, allocations: 0 / 355.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.2456, allocations: 16 kB / 355.4 MB, free: 8.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2456, allocations: 12 kB / 355.4 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004711/0.2461, allocations: 218.5 kB / 355.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.248, allocations: 1.191 MB / 356.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.2484, allocations: 162.6 kB / 356.9 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.2485, allocations: 76.83 kB / 357 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.2486, allocations: 4 kB / 357 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.2489, allocations: 213.2 kB / 357.2 MB, free: 6.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.2489, allocations: 4 kB / 357.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00117/0.2501, allocations: 330.4 kB / 357.5 MB, free: 6.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.2501, allocations: 106.8 kB / 357.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.2504, allocations: 241.8 kB / 357.9 MB, free: 5.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.2504, allocations: 33.7 kB / 357.9 MB, free: 5.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.2506, allocations: 216.1 kB / 358.1 MB, free: 5.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.095e-05/0.2506, allocations: 75.42 kB / 358.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.2508, allocations: 61.98 kB / 358.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2509, allocations: 334.8 kB / 358.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.2511, allocations: 76.62 kB / 358.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.2514, allocations: 228.9 kB / 358.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/0.2518, allocations: 239.5 kB / 359.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2518, allocations: 0 / 359.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007509/0.2525, allocations: 335.7 kB / 359.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.2525, allocations: 7.938 kB / 359.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.2526, allocations: 4 kB / 359.5 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.2529, allocations: 61.16 kB / 359.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002746/0.2531, allocations: 63.91 kB / 359.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.2548, allocations: 1.441 MB / 361 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.255, allocations: 43.8 kB / 361.1 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.2551, allocations: 15.98 kB / 361.1 MB, free: 2.41 MB / 318.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.0001869/0.2553, allocations: 149.8 kB / 361.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.2553, allocations: 23.86 kB / 361.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.036e-05/0.2554, allocations: 30.27 kB / 361.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2554, allocations: 8.094 kB / 361.3 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2554, allocations: 7.938 kB / 361.3 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2554, allocations: 3.938 kB / 361.3 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/0.2557, allocations: 237 kB / 361.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2557, allocations: 4 kB / 361.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.2559, allocations: 31.98 kB / 361.6 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.2561, allocations: 60.75 kB / 361.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.2561, allocations: 0 / 361.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/0.2575, allocations: 1.292 MB / 362.9 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2575, allocations: 7.922 kB / 362.9 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007499/0.2582, allocations: 349.7 kB / 363.3 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.383e-05/0.2583, allocations: 35.86 kB / 363.3 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.2584, allocations: 8 kB / 363.3 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.2586, allocations: 16.03 kB / 363.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-05/0.2587, allocations: 31.89 kB / 363.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.2587, allocations: 4 kB / 363.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.2589, allocations: 169.2 kB / 363.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2589, allocations: 4.062 kB / 363.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.2593, allocations: 91.78 kB / 363.6 MB, free: 15.71 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: 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.0001434/0.2594, allocations: 107.2 kB / 363.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006875/0.2601, allocations: 302.4 kB / 364 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2601, allocations: 0.6875 kB / 364 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.2605, allocations: 211.4 kB / 364.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.2608, allocations: 32.41 kB / 364.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.2625, allocations: 0.6687 MB / 364.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.2627, allocations: 172.8 kB / 365.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.2628, allocations: 26.27 kB / 365.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.816e-05/0.2629, allocations: 24.5 kB / 365.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2629, allocations: 3.938 kB / 365.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Templates: time 0.007749/0.2707, allocations: 2.886 MB / 368 MB, free: 11.2 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.671766050974838]