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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 113.1 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 200 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 51.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4123, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006951/0.4193, allocations: 2.874 MB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.4222, allocations: 0.7244 MB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005058/0.4227, allocations: 4 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.423, allocations: 51.5 kB / 404.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.4234, allocations: 87.19 kB / 404.5 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/0.4239, allocations: 111.7 kB / 404.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.4244, allocations: 366.4 kB / 404.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.4247, allocations: 115.3 kB / 405.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.4249, allocations: 135.5 kB / 405.2 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.4251, allocations: 159.4 kB / 405.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.905e-05/0.4252, allocations: 32 kB / 405.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.052e-05/0.4253, allocations: 35.94 kB / 405.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.59e-05/0.4253, allocations: 67.77 kB / 405.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.4255, allocations: 167.2 kB / 405.6 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005441/0.4261, allocations: 363.9 kB / 406 MB, free: 3.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4261, allocations: 0 / 406 MB, free: 3.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.4261, allocations: 0 / 406 MB, free: 3.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.4261, allocations: 0 / 406 MB, free: 3.59 MB / 318.1 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.00149/0.4276, allocations: 0.612 MB / 406.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.497e-05/0.4277, allocations: 8.031 kB / 406.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.4279, allocations: 36.5 kB / 406.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006858/0.4286, allocations: 265 kB / 406.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.4287, allocations: 84.61 kB / 407 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-05/0.4288, allocations: 32.28 kB / 407 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.4294, allocations: 293.9 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.4295, allocations: 0 / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.4295, allocations: 15.98 kB / 407.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.4295, allocations: 8 kB / 407.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.4299, allocations: 190.1 kB / 407.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.4318, allocations: 1.119 MB / 408.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.4322, allocations: 166.5 kB / 408.8 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.4323, allocations: 76.84 kB / 408.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.4324, allocations: 4 kB / 408.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.4327, allocations: 159.3 kB / 409 MB, free: 332 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.953e-06/0.4327, allocations: 0 / 409 MB, free: 332 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001228/0.434, allocations: 389.4 kB / 409.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.884e-05/0.4341, allocations: 106.8 kB / 409.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.4344, allocations: 232.9 kB / 409.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.915e-05/0.4344, allocations: 29.7 kB / 409.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.4346, allocations: 180.2 kB / 409.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.298e-05/0.4347, allocations: 63.09 kB / 410 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.4348, allocations: 65.59 kB / 410.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.435, allocations: 342.8 kB / 410.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.4352, allocations: 63.97 kB / 410.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.4354, allocations: 144.5 kB / 410.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/0.4357, allocations: 184.9 kB / 410.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4357, allocations: 4 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004922/0.4362, allocations: 276.4 kB / 411.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.4362, allocations: 4 kB / 411.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4362, allocations: 4 kB / 411.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.4366, allocations: 60.97 kB / 411.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.4369, allocations: 47.92 kB / 411.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.4389, allocations: 1.572 MB / 412.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.4392, allocations: 31.83 kB / 412.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.4392, allocations: 23.92 kB / 412.8 MB, free: 12.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.000195/0.4394, allocations: 153.7 kB / 413 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.4395, allocations: 23.72 kB / 413 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.778e-05/0.4395, allocations: 30.17 kB / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.4395, allocations: 4 kB / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4395, allocations: 0 / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4396, allocations: 0 / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.44, allocations: 317.3 kB / 413.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.44, allocations: 0 / 413.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.4402, allocations: 35.98 kB / 413.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/0.4404, allocations: 52.81 kB / 413.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.4404, allocations: 3.984 kB / 413.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.4417, allocations: 1.422 MB / 414.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4418, allocations: 0 / 414.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006636/0.4424, allocations: 336.5 kB / 415.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.4426, allocations: 112.8 kB / 415.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.4426, allocations: 4 kB / 415.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.4428, allocations: 24.05 kB / 415.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.4429, allocations: 27.95 kB / 415.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.4429, allocations: 11.98 kB / 415.3 MB, free: 9.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001951/0.4431, allocations: 156.5 kB / 415.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4431, allocations: 4 kB / 415.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003862/0.4435, allocations: 75.75 kB / 415.6 MB, free: 9.25 MB / 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: 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 (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.0002118/0.4438, allocations: 107.2 kB / 415.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006778/0.4444, allocations: 294.5 kB / 416 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4445, allocations: 0 / 416 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.4448, allocations: 202.6 kB / 416.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.4451, allocations: 46.98 kB / 416.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.4472, allocations: 0.644 MB / 416.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.4479, allocations: 0.7673 MB / 417.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.448, allocations: 22.28 kB / 417.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.998e-05/0.4481, allocations: 19.44 kB / 417.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4481, allocations: 4 kB / 417.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of Templates: time 0.008378/0.4565, allocations: 3.093 MB / 420.8 MB, free: 4.008 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches