Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001941/0.001941, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 226.7 MB / 245.5 MB, free: 6.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 103.3 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009492/0.0009493, allocations: 47.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2357, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003595/0.2394, allocations: 3.196 MB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2404, allocations: 0.7906 MB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2406, allocations: 4 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.2407, allocations: 51.61 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.2409, allocations: 87.3 kB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.2412, allocations: 91.86 kB / 411.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.2415, allocations: 402.2 kB / 411.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2416, allocations: 120.3 kB / 411.8 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.2418, allocations: 147.4 kB / 411.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.242, allocations: 175.2 kB / 412.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.242, allocations: 20 kB / 412.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.518e-05/0.2421, allocations: 28 kB / 412.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.572e-05/0.2422, allocations: 71.69 kB / 412.2 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.2423, allocations: 175.1 kB / 412.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.2427, allocations: 412.1 kB / 412.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2427, allocations: 0 / 412.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2427, allocations: 0 / 412.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2427, allocations: 0 / 412.8 MB, free: 22.06 MB / 298.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.001058/0.2438, allocations: 0.6549 MB / 413.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.2439, allocations: 16.88 kB / 413.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.2441, allocations: 44.56 kB / 413.5 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.2443, allocations: 285.1 kB / 413.8 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-05/0.2444, allocations: 76.62 kB / 413.8 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.2445, allocations: 32.38 kB / 413.9 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004545/0.2449, allocations: 346.8 kB / 414.2 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2449, allocations: 0 / 414.2 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.245, allocations: 12 kB / 414.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.245, allocations: 8 kB / 414.2 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.2454, allocations: 226.4 kB / 414.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.2468, allocations: 1.356 MB / 415.8 MB, free: 18.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.2471, allocations: 166.6 kB / 416 MB, free: 18.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.2473, allocations: 88.77 kB / 416.1 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.2473, allocations: 4 kB / 416.1 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.2476, allocations: 161.4 kB / 416.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.2477, allocations: 3.938 kB / 416.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009808/0.2486, allocations: 403.1 kB / 416.6 MB, free: 17.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.2487, allocations: 118.6 kB / 416.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.2489, allocations: 266.6 kB / 417 MB, free: 17.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.2489, allocations: 25.7 kB / 417 MB, free: 17.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/0.249, allocations: 207.9 kB / 417.2 MB, free: 17.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.249, allocations: 71 kB / 417.3 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.2491, allocations: 65.92 kB / 417.4 MB, free: 17.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.2492, allocations: 338.8 kB / 417.7 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.2493, allocations: 72.62 kB / 417.8 MB, free: 16.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.2495, allocations: 181.5 kB / 417.9 MB, free: 16.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.2498, allocations: 235.5 kB / 418.2 MB, free: 16.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2498, allocations: 0 / 418.2 MB, free: 16.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005497/0.2503, allocations: 340.2 kB / 418.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2504, allocations: 4 kB / 418.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2504, allocations: 4 kB / 418.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.2506, allocations: 61.16 kB / 418.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.2509, allocations: 59.91 kB / 418.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009256/0.2518, allocations: 1.408 MB / 420 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.252, allocations: 39.67 kB / 420.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.252, allocations: 16 kB / 420.1 MB, free: 14.2 MB / 298.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 0.0001069/0.2522, allocations: 162.1 kB / 420.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.2522, allocations: 23.72 kB / 420.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.2522, allocations: 30.19 kB / 420.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.2523, allocations: 3.984 kB / 420.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2523, allocations: 7.938 kB / 420.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2523, allocations: 0 / 420.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.2525, allocations: 337.3 kB / 420.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2525, allocations: 0 / 420.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.2527, allocations: 43.97 kB / 420.7 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001532/0.2528, allocations: 44.81 kB / 420.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.2529, allocations: 11.94 kB / 420.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007127/0.2536, allocations: 1.327 MB / 422.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2536, allocations: 0 / 422.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.2585, allocations: 2.478 MB / 424.5 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.335e-05/0.2586, allocations: 120.7 kB / 424.7 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.2586, allocations: 11.94 kB / 424.7 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.2588, allocations: 19.98 kB / 424.7 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.2589, allocations: 23.95 kB / 424.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.2589, allocations: 7.984 kB / 424.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.259, allocations: 186 kB / 424.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.259, allocations: 4.062 kB / 424.9 MB, free: 9.012 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000468/0.2595, allocations: 111.8 kB / 425 MB, free: 8.902 MB / 298.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.0001182/0.2596, allocations: 111.1 kB / 425.1 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.2602, allocations: 307 kB / 425.4 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2602, allocations: 4.125 kB / 425.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.2605, allocations: 202.5 kB / 425.6 MB, free: 8.258 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.2608, allocations: 32.55 kB / 425.7 MB, free: 8.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.2622, allocations: 0.9701 MB / 426.6 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.2624, allocations: 0.7794 MB / 427.4 MB, free: 6.422 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.2626, allocations: 30.28 kB / 427.4 MB, free: 6.391 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.2626, allocations: 19.44 kB / 427.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2626, allocations: 3.938 kB / 427.5 MB, free: 6.367 MB / 298.7 MB Notification: Performance of Templates: time 0.005278/0.2679, allocations: 3.327 MB / 430.8 MB, free: 3.062 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches