Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, 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.378/1.378, allocations: 226.7 MB / 245.5 MB, free: 6.965 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: 97.02 kB / 296.7 MB, free: 6.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009888/0.0009893, allocations: 51.92 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2728, allocations: 50.45 MB / 407.1 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003604/0.2765, allocations: 2.925 MB / 410 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.2778, allocations: 0.7574 MB / 410.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.278, allocations: 8 kB / 410.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.2782, allocations: 35.69 kB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.2783, allocations: 74.36 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.2787, allocations: 91.84 kB / 410.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.2789, allocations: 354.4 kB / 411.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2791, allocations: 107.9 kB / 411.4 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.2792, allocations: 131.5 kB / 411.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.2794, allocations: 143.3 kB / 411.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.2794, allocations: 20 kB / 411.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.737e-05/0.2795, allocations: 20 kB / 411.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.32e-05/0.2796, allocations: 63.75 kB / 411.8 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.2797, allocations: 155.2 kB / 411.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.2799, allocations: 336.4 kB / 412.2 MB, free: 22.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.28, allocations: 3.984 kB / 412.3 MB, free: 22.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.28, allocations: 4 kB / 412.3 MB, free: 22.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.28, allocations: 3.938 kB / 412.3 MB, free: 22.57 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008973/0.2809, allocations: 0.6057 MB / 412.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2809, allocations: 8.031 kB / 412.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.281, allocations: 36.56 kB / 412.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.2812, allocations: 260.4 kB / 413.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.787e-05/0.2813, allocations: 80.61 kB / 413.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.2814, allocations: 36.38 kB / 413.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000405/0.2818, allocations: 297.8 kB / 413.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.2818, allocations: 0 / 413.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.2818, allocations: 12 kB / 413.6 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2819, allocations: 8 kB / 413.6 MB, free: 21.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.2821, allocations: 198.1 kB / 413.8 MB, free: 20.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.2836, allocations: 1.127 MB / 414.9 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.2839, allocations: 158.5 kB / 415.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.284, allocations: 76.84 kB / 415.1 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.284, allocations: 4 kB / 415.1 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.2843, allocations: 153.4 kB / 415.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.2843, allocations: 0 / 415.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009596/0.2853, allocations: 395.1 kB / 415.7 MB, free: 18.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.2854, allocations: 106.8 kB / 415.8 MB, free: 18.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.2855, allocations: 225 kB / 416 MB, free: 18.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.2856, allocations: 33.7 kB / 416 MB, free: 18.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.2856, allocations: 176.1 kB / 416.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.2857, allocations: 75.02 kB / 416.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-05/0.2858, allocations: 61.62 kB / 416.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.036e-05/0.2859, allocations: 334.8 kB / 416.7 MB, free: 17.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.286, allocations: 63.98 kB / 416.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.2861, allocations: 149.6 kB / 416.9 MB, free: 17.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.2863, allocations: 184.2 kB / 417.1 MB, free: 17.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2863, allocations: 0 / 417.1 MB, free: 17.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003848/0.2867, allocations: 280.3 kB / 417.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2867, allocations: 8 kB / 417.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.2868, allocations: 0 / 417.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.287, allocations: 57.03 kB / 417.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.2872, allocations: 51.92 kB / 417.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009325/0.2882, allocations: 1.401 MB / 418.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.2884, allocations: 35.77 kB / 418.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.2884, allocations: 8 kB / 418.9 MB, free: 15.43 MB / 298.7 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.0001205/0.2885, allocations: 163.3 kB / 419 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.2886, allocations: 23.75 kB / 419.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.2886, allocations: 22.19 kB / 419.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2886, allocations: 0 / 419.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2886, allocations: 4 kB / 419.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2886, allocations: 3.984 kB / 419.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.2889, allocations: 317.3 kB / 419.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2889, allocations: 0 / 419.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2891, allocations: 43.86 kB / 419.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/0.2893, allocations: 52.81 kB / 419.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.2893, allocations: 8 kB / 419.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007884/0.2901, allocations: 1.319 MB / 420.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2901, allocations: 0 / 420.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004909/0.295, allocations: 2.389 MB / 423.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.142e-05/0.2951, allocations: 112.8 kB / 423.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.2952, allocations: 8 kB / 423.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.2953, allocations: 15.98 kB / 423.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.163e-05/0.2954, allocations: 35.95 kB / 423.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.2955, allocations: 7.984 kB / 423.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.2956, allocations: 160.5 kB / 423.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2956, allocations: 0 / 423.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004614/0.296, allocations: 107.8 kB / 423.7 MB, free: 10.3 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: 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.0001261/0.2962, allocations: 107.2 kB / 423.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004589/0.2966, allocations: 286.5 kB / 424 MB, free: 9.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2967, allocations: 3.938 kB / 424 MB, free: 9.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2969, allocations: 198.5 kB / 424.2 MB, free: 9.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.2972, allocations: 36.36 kB / 424.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.2987, allocations: 0.9378 MB / 425.2 MB, free: 8.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.2989, allocations: 0.7676 MB / 426 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.299, allocations: 30.28 kB / 426 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.299, allocations: 23.42 kB / 426 MB, free: 7.824 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2991, allocations: 0 / 426 MB, free: 7.824 MB / 298.7 MB Notification: Performance of Templates: time 0.005788/0.3048, allocations: 3.353 MB / 429.4 MB, free: 4.5 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches