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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 113.9 kB / 17.07 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.001246/0.001246, allocations: 198.8 kB / 18 MB, free: 5.059 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.539/1.539, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 47.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4221, allocations: 49.44 MB / 400.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005837/0.428, allocations: 3.134 MB / 403.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.43, allocations: 0.7478 MB / 404.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004864/0.4305, allocations: 8 kB / 404.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.4309, allocations: 59.36 kB / 404.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004297/0.4313, allocations: 107 kB / 404.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.4318, allocations: 107.8 kB / 404.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006971/0.4326, allocations: 414.2 kB / 405.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.4329, allocations: 139.7 kB / 405.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.4333, allocations: 163.4 kB / 405.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.4336, allocations: 179.2 kB / 405.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.195e-05/0.4337, allocations: 32 kB / 405.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.229e-05/0.4338, allocations: 36 kB / 405.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.984e-05/0.4339, allocations: 79.75 kB / 405.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002473/0.4341, allocations: 187.1 kB / 406.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005687/0.4347, allocations: 431.7 kB / 406.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.4347, allocations: 0 / 406.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4347, allocations: 0 / 406.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.4348, allocations: 0 / 406.5 MB, free: 3.195 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001429/0.4362, allocations: 0.6393 MB / 407.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.4363, allocations: 15.89 kB / 407.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.4364, allocations: 44.47 kB / 407.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.437, allocations: 285.2 kB / 407.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.4371, allocations: 80.62 kB / 407.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.977e-05/0.4372, allocations: 32.36 kB / 407.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006766/0.4379, allocations: 342.8 kB / 407.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.4379, allocations: 0 / 407.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.438, allocations: 16 kB / 408 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.438, allocations: 11.98 kB / 408 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.4385, allocations: 218.5 kB / 408.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.4407, allocations: 1.36 MB / 409.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.4411, allocations: 162.6 kB / 409.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.4413, allocations: 92.77 kB / 409.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.4413, allocations: 3.938 kB / 409.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003042/0.4416, allocations: 159.4 kB / 410 MB, free: 15.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.903e-06/0.4416, allocations: 0 / 410 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001228/0.4429, allocations: 405.1 kB / 410.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.184e-05/0.443, allocations: 110.8 kB / 410.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003048/0.4433, allocations: 262.6 kB / 410.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.4433, allocations: 33.7 kB / 410.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.4435, allocations: 203.9 kB / 410.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-05/0.4436, allocations: 71.02 kB / 411 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.4437, allocations: 58.02 kB / 411.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4439, allocations: 342.8 kB / 411.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.444, allocations: 80.56 kB / 411.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.4443, allocations: 173.5 kB / 411.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.4447, allocations: 240.2 kB / 411.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4447, allocations: 0 / 411.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00072/0.4454, allocations: 344.2 kB / 412.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.4455, allocations: 4 kB / 412.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.4455, allocations: 4 kB / 412.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/0.4458, allocations: 57.16 kB / 412.3 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.4462, allocations: 63.91 kB / 412.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.4478, allocations: 1.568 MB / 413.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.4481, allocations: 47.8 kB / 414 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.4481, allocations: 15.98 kB / 414 MB, free: 11.17 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.000194/0.4483, allocations: 156.4 kB / 414.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.4484, allocations: 23.72 kB / 414.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.4485, allocations: 38.11 kB / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4485, allocations: 0 / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.4485, allocations: 0 / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4485, allocations: 3.938 kB / 414.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.4489, allocations: 345.3 kB / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4489, allocations: 0 / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.4491, allocations: 39.92 kB / 414.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.4493, allocations: 52.75 kB / 414.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.4493, allocations: 8 kB / 414.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.4506, allocations: 1.418 MB / 416.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4506, allocations: 0 / 416.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006686/0.4513, allocations: 344.1 kB / 416.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.4514, allocations: 116.9 kB / 416.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.4514, allocations: 8 kB / 416.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.4516, allocations: 19.98 kB / 416.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/0.4517, allocations: 31.89 kB / 416.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.4517, allocations: 4 kB / 416.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.4519, allocations: 186 kB / 416.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4519, allocations: 4 kB / 416.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003993/0.4523, allocations: 87.75 kB / 416.8 MB, free: 8.07 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: 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.0001786/0.4525, allocations: 115.1 kB / 416.9 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006582/0.4532, allocations: 306.5 kB / 417.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4532, allocations: 3.938 kB / 417.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.4535, allocations: 211.2 kB / 417.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.4538, allocations: 36.56 kB / 417.5 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.4554, allocations: 0.6761 MB / 418.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.4559, allocations: 0.7675 MB / 418.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.456, allocations: 26.28 kB / 419 MB, free: 5.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.935e-05/0.4561, allocations: 23.44 kB / 419 MB, free: 5.832 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4561, allocations: 3.938 kB / 419 MB, free: 5.828 MB / 334.1 MB Notification: Performance of Templates: time 0.008955/0.4651, allocations: 3.142 MB / 422.1 MB, free: 2.711 MB / 334.1 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/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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches