Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 171 kB / 17.4 MB, free: 4.422 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.464/1.464, allocations: 223.3 MB / 241.4 MB, free: 9.965 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.0007504/0.0007503, allocations: 90.88 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003401, allocations: 15.94 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2729, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.3883, allocations: 80.43 MB / 483.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.3887, allocations: 72.47 kB / 483.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01756/0.4063, allocations: 6.323 MB / 489.6 MB, free: 9.461 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4063, allocations: 0 / 489.6 MB, free: 9.461 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.4064, allocations: 8 kB / 489.6 MB, free: 9.453 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00134/0.4077, allocations: 0.6016 MB / 490.2 MB, free: 8.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.4078, allocations: 12.03 kB / 490.2 MB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.408, allocations: 44.45 kB / 490.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005626/0.4086, allocations: 277 kB / 490.5 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.4087, allocations: 76.62 kB / 490.6 MB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-05/0.4088, allocations: 32.31 kB / 490.6 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.4096, allocations: 339.3 kB / 490.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.4096, allocations: 11.94 kB / 491 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.4097, allocations: 16 kB / 491 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.4097, allocations: 11.98 kB / 491 MB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005251/0.4103, allocations: 226.4 kB / 491.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.4125, allocations: 1.372 MB / 492.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.4128, allocations: 170.7 kB / 492.7 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.413, allocations: 92.77 kB / 492.8 MB, free: 5.957 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.4131, allocations: 4 kB / 492.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.4135, allocations: 165.8 kB / 493 MB, free: 5.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.765e-06/0.4136, allocations: 0 / 493 MB, free: 5.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001293/0.4149, allocations: 421.3 kB / 493.4 MB, free: 5.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.4149, allocations: 110.8 kB / 493.5 MB, free: 5.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.4152, allocations: 254.7 kB / 493.8 MB, free: 4.949 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.4153, allocations: 37.7 kB / 493.8 MB, free: 4.906 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.4154, allocations: 199.9 kB / 494 MB, free: 4.707 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.644e-05/0.4155, allocations: 71.09 kB / 494.1 MB, free: 4.637 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.4155, allocations: 4 kB / 494.1 MB, free: 4.633 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4156, allocations: 334.8 kB / 494.4 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.4158, allocations: 75.95 kB / 494.5 MB, free: 4.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.416, allocations: 167.8 kB / 494.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.4164, allocations: 219.5 kB / 494.8 MB, free: 3.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4164, allocations: 7.938 kB / 494.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006897/0.4171, allocations: 332.4 kB / 495.2 MB, free: 3.438 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4171, allocations: 11.94 kB / 495.2 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.4171, allocations: 0 / 495.2 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.4174, allocations: 56.75 kB / 495.2 MB, free: 3.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.4177, allocations: 68 kB / 495.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.419, allocations: 1.404 MB / 496.7 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.4193, allocations: 51.64 kB / 496.8 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.4193, allocations: 12 kB / 496.8 MB, free: 1.699 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.0001889/0.4195, allocations: 156.5 kB / 496.9 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.486e-05/0.4196, allocations: 23.72 kB / 497 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.4196, allocations: 34.17 kB / 497 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.4196, allocations: 4 kB / 497 MB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4196, allocations: 0 / 497 MB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.4197, allocations: 7.922 kB / 497 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003631/0.42, allocations: 333.3 kB / 497.3 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.42, allocations: 4 kB / 497.3 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.4202, allocations: 35.97 kB / 497.4 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.4204, allocations: 56.81 kB / 497.4 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.4205, allocations: 4 kB / 497.4 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.4216, allocations: 1.328 MB / 498.8 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4216, allocations: 3.938 kB / 498.8 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007481/0.4223, allocations: 354.7 kB / 499.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.4225, allocations: 120.7 kB / 499.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.4225, allocations: 8.062 kB / 499.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.4227, allocations: 19.98 kB / 499.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/0.4228, allocations: 31.94 kB / 499.3 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.4228, allocations: 8 kB / 499.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001923/0.423, allocations: 182 kB / 499.5 MB, free: 14.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.423, allocations: 4 kB / 499.5 MB, free: 14.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004161/0.4235, allocations: 91.75 kB / 499.6 MB, free: 14.69 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: 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 (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.0001781/0.4237, allocations: 111.2 kB / 499.7 MB, free: 14.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006928/0.4244, allocations: 314.4 kB / 500 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4244, allocations: 0.5625 kB / 500 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003181/0.4247, allocations: 200.1 kB / 0.4884 GB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.4251, allocations: 44.47 kB / 0.4885 GB, free: 14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.4269, allocations: 0.8342 MB / 0.4893 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.4273, allocations: 0.7716 MB / 0.4901 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000148/0.4275, allocations: 26.28 kB / 0.4901 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.4276, allocations: 19.44 kB / 0.4901 GB, free: 12.3 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4276, allocations: 0 / 0.4901 GB, free: 12.3 MB / 378.7 MB Notification: Performance of Templates: time 0.007064/0.4346, allocations: 2.81 MB / 0.4928 GB, free: 9.52 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches