Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008727/0.0008727, allocations: 90.69 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.455e-05/1.457e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.08868, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3671, allocations: 78.7 MB / 466.2 MB, free: 148 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3674, allocations: 67.95 kB / 466.2 MB, free: 80 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01431/0.3817, allocations: 5.553 MB / 471.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3817, allocations: 0 / 471.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.3818, allocations: 4 kB / 471.8 MB, free: 10.5 MB / 346.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.0007705/0.3825, allocations: 0.5374 MB / 472.3 MB, free: 9.926 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3826, allocations: 12.03 kB / 472.3 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.3827, allocations: 31.62 kB / 472.4 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.3829, allocations: 262.4 kB / 472.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/0.383, allocations: 68.17 kB / 472.7 MB, free: 9.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.389e-05/0.3831, allocations: 20 kB / 472.7 MB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003014/0.3834, allocations: 173.5 kB / 472.9 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.3838, allocations: 249.8 kB / 473.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3838, allocations: 0 / 473.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.3838, allocations: 0 / 473.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3838, allocations: 8 kB / 473.1 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.3853, allocations: 1.072 MB / 474.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.3856, allocations: 144.2 kB / 474.3 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.3857, allocations: 72.89 kB / 474.4 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.3857, allocations: 4 kB / 474.4 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.386, allocations: 139.4 kB / 474.6 MB, free: 7.523 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.386, allocations: 0 / 474.6 MB, free: 7.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005245/0.3865, allocations: 208.6 kB / 474.8 MB, free: 7.312 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.3866, allocations: 106.8 kB / 474.9 MB, free: 7.184 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.3867, allocations: 166.4 kB / 475 MB, free: 7.012 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3868, allocations: 25.7 kB / 475 MB, free: 6.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.3869, allocations: 179.9 kB / 475.2 MB, free: 6.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.3869, allocations: 63.09 kB / 475.3 MB, free: 6.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.3869, allocations: 0 / 475.3 MB, free: 6.734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3871, allocations: 343.1 kB / 475.6 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.553e-05/0.3872, allocations: 53.31 kB / 475.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.3873, allocations: 116.8 kB / 475.8 MB, free: 6.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.3874, allocations: 65.11 kB / 475.9 MB, free: 6.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3874, allocations: 0 / 475.9 MB, free: 6.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003402/0.3878, allocations: 224.3 kB / 476.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3878, allocations: 7.938 kB / 476.1 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3878, allocations: 4 kB / 476.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/0.3881, allocations: 60.91 kB / 476.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.3883, allocations: 47.92 kB / 476.2 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.3894, allocations: 1.376 MB / 477.6 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.3897, allocations: 35.88 kB / 477.6 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3897, allocations: 8 kB / 477.6 MB, free: 4.258 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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.0001264/0.3898, allocations: 115.6 kB / 477.7 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.3899, allocations: 19.72 kB / 477.7 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.3899, allocations: 25.95 kB / 477.8 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3899, allocations: 4 kB / 477.8 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.3899, allocations: 0 / 477.8 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3899, allocations: 0 / 477.8 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.3902, allocations: 278 kB / 478 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3902, allocations: 0 / 478 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3904, allocations: 39.92 kB / 478.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/0.3906, allocations: 48.81 kB / 478.1 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.3906, allocations: 7.984 kB / 478.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009298/0.3915, allocations: 1.276 MB / 479.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3916, allocations: 0 / 479.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.3921, allocations: 307.9 kB / 479.7 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.598e-05/0.3922, allocations: 108.9 kB / 479.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.3922, allocations: 4.125 kB / 479.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3924, allocations: 19.98 kB / 479.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/0.3925, allocations: 35.92 kB / 479.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.3925, allocations: 8 kB / 479.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.449e-05/0.3926, allocations: 132.5 kB / 480 MB, free: 1.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3926, allocations: 0 / 480 MB, free: 1.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003398/0.393, allocations: 75.75 kB / 480.1 MB, free: 1.574 MB / 346.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) * 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.000151/0.3931, allocations: 107.2 kB / 480.2 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.3936, allocations: 253.9 kB / 480.4 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3936, allocations: 3.938 kB / 480.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.3938, allocations: 181.7 kB / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.3941, allocations: 41.44 kB / 480.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3953, allocations: 0.4935 MB / 481.2 MB, free: 468 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3956, allocations: 0.7633 MB / 481.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.763e-05/0.3957, allocations: 18.06 kB / 481.9 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.3958, allocations: 19.44 kB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3958, allocations: 0 / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Templates: time 0.004999/0.4008, allocations: 2.344 MB / 484.3 MB, free: 13.31 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches