Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4761/0.4775, allocations: 50.54 MB / 409.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005733/0.4833, allocations: 3.161 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.4852, allocations: 0.8178 MB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.4854, allocations: 4 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.4857, allocations: 63.38 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.4859, allocations: 99.05 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.4864, allocations: 123.8 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.487, allocations: 422.1 kB / 413.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.4873, allocations: 139.7 kB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.4876, allocations: 155.4 kB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.4878, allocations: 183.2 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.518e-05/0.4879, allocations: 40 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.757e-05/0.488, allocations: 36 kB / 414.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.809e-05/0.4881, allocations: 83.62 kB / 414.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.4883, allocations: 187.1 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.4889, allocations: 423.6 kB / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.377e-06/0.4889, allocations: 0 / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4889, allocations: 4 kB / 415.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.489, allocations: 0 / 415.2 MB, free: 11.64 MB / 334.1 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.001289/0.4903, allocations: 0.6548 MB / 415.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4903, allocations: 8.031 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.4906, allocations: 44.56 kB / 415.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.4911, allocations: 301 kB / 416.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.4912, allocations: 80.62 kB / 416.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.758e-05/0.4913, allocations: 36.36 kB / 416.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.4918, allocations: 342.8 kB / 416.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.4919, allocations: 0 / 416.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.624e-05/0.4919, allocations: 16 kB / 416.6 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.4919, allocations: 12 kB / 416.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.4924, allocations: 222.5 kB / 416.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.4946, allocations: 1.348 MB / 418.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.495, allocations: 170.6 kB / 418.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.4951, allocations: 88.77 kB / 418.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.4952, allocations: 4 kB / 418.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.4955, allocations: 155 kB / 418.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.4955, allocations: 4 kB / 418.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001264/0.4968, allocations: 402.6 kB / 419 MB, free: 7.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.4969, allocations: 114.7 kB / 419.1 MB, free: 7.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.4972, allocations: 262.7 kB / 419.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.4973, allocations: 33.7 kB / 419.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.4975, allocations: 203.9 kB / 419.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.817e-05/0.4975, allocations: 71 kB / 419.7 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.4977, allocations: 69.86 kB / 419.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4978, allocations: 338.8 kB / 420.1 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.498, allocations: 72.62 kB / 420.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.4983, allocations: 181.5 kB / 420.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.4986, allocations: 239.5 kB / 420.6 MB, free: 5.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4986, allocations: 0 / 420.6 MB, free: 5.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006702/0.4993, allocations: 344.4 kB / 420.9 MB, free: 5.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4994, allocations: 4 kB / 420.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.4994, allocations: 4 kB / 420.9 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.4997, allocations: 56.81 kB / 421 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/0.4999, allocations: 68 kB / 421 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.5013, allocations: 1.564 MB / 422.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.5016, allocations: 43.67 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.5016, allocations: 19.98 kB / 422.6 MB, free: 3.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001796/0.5018, allocations: 157.8 kB / 422.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.5018, allocations: 27.62 kB / 422.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.693e-05/0.5019, allocations: 38.11 kB / 422.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.5019, allocations: 0 / 422.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.5019, allocations: 0 / 422.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5019, allocations: 3.938 kB / 422.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003461/0.5023, allocations: 333.5 kB / 423.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5023, allocations: 0 / 423.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.5025, allocations: 35.98 kB / 423.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.5027, allocations: 60.75 kB / 423.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.5027, allocations: 4 kB / 423.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.5038, allocations: 1.414 MB / 424.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.5038, allocations: 0 / 424.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006955/0.5045, allocations: 357.4 kB / 425.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.5047, allocations: 116.8 kB / 425.2 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.5047, allocations: 8 kB / 425.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.5049, allocations: 11.98 kB / 425.2 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.512e-05/0.505, allocations: 39.95 kB / 425.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.505, allocations: 4 kB / 425.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.5052, allocations: 190 kB / 425.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5052, allocations: 0 / 425.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004032/0.5056, allocations: 87.75 kB / 425.5 MB, free: 492 kB / 334.1 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 (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.0001722/0.5058, allocations: 107.2 kB / 425.6 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006341/0.5064, allocations: 318.3 kB / 425.9 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5065, allocations: 0 / 425.9 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.5068, allocations: 206.6 kB / 426.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.5071, allocations: 28.55 kB / 426.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.5087, allocations: 0.6788 MB / 426.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.5092, allocations: 0.7713 MB / 427.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.5093, allocations: 30.28 kB / 427.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-05/0.5093, allocations: 23.42 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.5094, allocations: 7.938 kB / 427.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of Templates: time 0.007965/0.5173, allocations: 3.154 MB / 430.8 MB, free: 11.12 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches