Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009873/0.0009916, allocations: 202.4 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.5 MB / 245.4 MB, free: 8.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007282/0.0007282, allocations: 100.7 kB / 297.4 MB, free: 6.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1777, allocations: 51.3 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08193/0.2597, allocations: 80.18 MB / 488.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.2599, allocations: 67.97 kB / 488.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01432/0.2742, allocations: 5.649 MB / 494.6 MB, free: 5.723 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2743, allocations: 0 / 494.6 MB, free: 5.723 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.2743, allocations: 7.938 kB / 494.6 MB, free: 5.715 MB / 362.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.0007975/0.2751, allocations: 0.5762 MB / 495.1 MB, free: 5.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2752, allocations: 8.031 kB / 495.2 MB, free: 5.082 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.2752, allocations: 32.56 kB / 495.2 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.2755, allocations: 247.9 kB / 495.4 MB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.929e-05/0.2756, allocations: 72.62 kB / 495.5 MB, free: 4.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.2756, allocations: 36.31 kB / 495.5 MB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.2761, allocations: 294.3 kB / 495.8 MB, free: 4.355 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2761, allocations: 7.938 kB / 495.8 MB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.2761, allocations: 8 kB / 495.8 MB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2762, allocations: 8 kB / 495.8 MB, free: 4.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.2765, allocations: 194.1 kB / 496 MB, free: 4.141 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.278, allocations: 1.143 MB / 497.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.2783, allocations: 150.5 kB / 497.3 MB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.2784, allocations: 80.83 kB / 497.4 MB, free: 2.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.2784, allocations: 4 kB / 497.4 MB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.2787, allocations: 165.2 kB / 497.6 MB, free: 2.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2787, allocations: 0 / 497.6 MB, free: 2.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.000976/0.2797, allocations: 387.3 kB / 497.9 MB, free: 2.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.2797, allocations: 114.8 kB / 498.1 MB, free: 1.953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.2799, allocations: 224.9 kB / 498.3 MB, free: 1.723 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.28, allocations: 37.7 kB / 498.3 MB, free: 1.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.54e-05/0.2801, allocations: 172.2 kB / 498.5 MB, free: 1.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.346e-05/0.2801, allocations: 67.09 kB / 498.5 MB, free: 1.441 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.2801, allocations: 4 kB / 498.6 MB, free: 1.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.889e-05/0.2802, allocations: 338.8 kB / 498.9 MB, free: 1.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.2804, allocations: 64.53 kB / 498.9 MB, free: 1.031 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.2805, allocations: 133.5 kB / 499.1 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.2808, allocations: 166.5 kB / 499.2 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2808, allocations: 0 / 499.2 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003875/0.2812, allocations: 267.9 kB / 499.5 MB, free: 440 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2812, allocations: 4 kB / 499.5 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.2812, allocations: 4 kB / 499.5 MB, free: 432 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002347/0.2815, allocations: 52.97 kB / 499.6 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.2817, allocations: 55.91 kB / 499.6 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.2828, allocations: 1.408 MB / 0.4893 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.283, allocations: 39.73 kB / 0.4893 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.2831, allocations: 8 kB / 0.4893 GB, free: 14.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.2832, allocations: 151.4 kB / 0.4895 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.2833, allocations: 19.81 kB / 0.4895 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.936e-05/0.2833, allocations: 34.11 kB / 0.4895 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2833, allocations: 4 kB / 0.4895 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2833, allocations: 3.984 kB / 0.4895 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2833, allocations: 4 kB / 0.4895 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.2836, allocations: 321.3 kB / 0.4898 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2836, allocations: 0 / 0.4898 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.2838, allocations: 31.92 kB / 0.4899 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001777/0.284, allocations: 60.75 kB / 0.4899 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.284, allocations: 8 kB / 0.4899 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009756/0.285, allocations: 1.32 MB / 0.4912 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.285, allocations: 0 / 0.4912 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.2856, allocations: 328.1 kB / 0.4915 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.095e-05/0.2857, allocations: 116.8 kB / 0.4916 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.483e-05/0.2858, allocations: 4 kB / 0.4917 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.2859, allocations: 24.05 kB / 0.4917 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.331e-05/0.286, allocations: 35.88 kB / 0.4917 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2861, allocations: 4 kB / 0.4917 GB, free: 12.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.2862, allocations: 168.5 kB / 0.4919 GB, free: 11.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2862, allocations: 0 / 0.4919 GB, free: 11.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003413/0.2865, allocations: 79.78 kB / 0.4919 GB, free: 11.8 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001369/0.2867, allocations: 118.7 kB / 0.4921 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.2872, allocations: 278.5 kB / 0.4923 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2872, allocations: 0 / 0.4923 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.2874, allocations: 190.6 kB / 0.4925 GB, free: 11.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2877, allocations: 42.84 kB / 0.4926 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.2892, allocations: 0.8506 MB / 0.4934 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.2895, allocations: 0.7597 MB / 0.4941 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/0.2895, allocations: 19.44 kB / 0.4941 GB, free: 9.469 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2896, allocations: 0 / 0.4941 GB, free: 9.469 MB / 378.7 MB Notification: Performance of Templates: time 0.005256/0.2948, allocations: 4.146 MB / 0.4982 GB, free: 5.336 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches