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.001202/0.001202, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009081/0.0009081, allocations: 97.91 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003091, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2892, allocations: 50.4 MB / 401.5 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.3944, allocations: 79.43 MB / 480.9 MB, free: 1.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.3947, allocations: 75.95 kB / 481 MB, free: 1.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01474/0.4095, allocations: 5.606 MB / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.31e-06/0.4095, allocations: 3.984 kB / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.825e-05/0.4096, allocations: 4 kB / 486.6 MB, free: 11.37 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.0009744/0.4105, allocations: 0.5565 MB / 487.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.4106, allocations: 8.031 kB / 487.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.942e-05/0.4107, allocations: 35.62 kB / 487.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.411, allocations: 250.5 kB / 487.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.088e-05/0.4111, allocations: 80.05 kB / 487.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.4112, allocations: 28 kB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004684/0.4117, allocations: 297.9 kB / 487.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.4117, allocations: 3.953 kB / 487.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.4117, allocations: 19.92 kB / 487.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.4117, allocations: 8 kB / 487.9 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.4121, allocations: 178.2 kB / 488.1 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.4139, allocations: 1.143 MB / 489.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.4142, allocations: 162.5 kB / 489.4 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.4143, allocations: 7.922 kB / 489.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003157/0.4146, allocations: 154.6 kB / 489.5 MB, free: 8.242 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.4146, allocations: 0 / 489.5 MB, free: 8.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001037/0.4156, allocations: 397.4 kB / 489.9 MB, free: 7.828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.4157, allocations: 106.8 kB / 490 MB, free: 7.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.4159, allocations: 204.5 kB / 490.2 MB, free: 7.496 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.416, allocations: 33.7 kB / 490.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.4161, allocations: 176.2 kB / 490.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.4162, allocations: 67.06 kB / 490.5 MB, free: 7.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.4162, allocations: 4 kB / 490.5 MB, free: 7.211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4163, allocations: 338.8 kB / 490.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.4164, allocations: 64.53 kB / 490.9 MB, free: 6.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.4166, allocations: 129 kB / 491 MB, free: 6.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.4168, allocations: 74.75 kB / 491.1 MB, free: 6.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4168, allocations: 0 / 491.1 MB, free: 6.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003994/0.4172, allocations: 260.3 kB / 491.3 MB, free: 6.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.4172, allocations: 12.03 kB / 491.3 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4172, allocations: 0 / 491.3 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.4175, allocations: 52.81 kB / 491.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.4177, allocations: 47.92 kB / 491.4 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.419, allocations: 1.417 MB / 492.9 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.4193, allocations: 35.77 kB / 492.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.4193, allocations: 15.98 kB / 492.9 MB, free: 4.609 MB / 362.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.0001743/0.4195, allocations: 142.4 kB / 493 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-05/0.4195, allocations: 23.91 kB / 493.1 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.4196, allocations: 34.11 kB / 493.1 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.4196, allocations: 0 / 493.1 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4196, allocations: 3.953 kB / 493.1 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4196, allocations: 4 kB / 493.1 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.4199, allocations: 321.3 kB / 493.4 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4199, allocations: 0 / 493.4 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.4201, allocations: 31.92 kB / 493.5 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.4203, allocations: 56.81 kB / 493.5 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.4203, allocations: 7.984 kB / 493.5 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.4215, allocations: 1.335 MB / 494.9 MB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4215, allocations: 3.953 kB / 494.9 MB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006029/0.4221, allocations: 327.8 kB / 495.2 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.957e-05/0.4222, allocations: 108.9 kB / 495.3 MB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.4222, allocations: 4 kB / 495.3 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.4224, allocations: 19.98 kB / 495.3 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.4225, allocations: 35.89 kB / 495.3 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.4226, allocations: 8.062 kB / 495.4 MB, free: 1.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001502/0.4227, allocations: 172.4 kB / 495.5 MB, free: 1.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.615e-06/0.4227, allocations: 0 / 495.5 MB, free: 1.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000357/0.4231, allocations: 83.62 kB / 495.6 MB, free: 1.676 MB / 362.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.0001588/0.4233, allocations: 103.2 kB / 495.7 MB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005322/0.4238, allocations: 286.7 kB / 496 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4238, allocations: 4.062 kB / 496 MB, free: 1.266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.4241, allocations: 195.9 kB / 496.2 MB, free: 1.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.4244, allocations: 32.42 kB / 496.2 MB, free: 1.031 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.4259, allocations: 0.8166 MB / 497 MB, free: 200 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.4263, allocations: 0.7674 MB / 497.8 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.722e-05/0.4264, allocations: 21.94 kB / 497.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.4264, allocations: 19.44 kB / 497.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4264, allocations: 0 / 497.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of Templates: time 0.006023/0.4325, allocations: 2.74 MB / 0.4888 GB, free: 12.66 MB / 378.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