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.002204/0.002204, allocations: 115.4 kB / 17.07 MB, free: 6 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.002157/0.002158, allocations: 190.9 kB / 18 MB, free: 5.082 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.69/1.69, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4574, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005313/0.4628, allocations: 3.14 MB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.4646, allocations: 0.7439 MB / 404.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.4648, allocations: 7.938 kB / 404.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.4651, allocations: 59.42 kB / 404.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.4653, allocations: 103 kB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.4657, allocations: 111.8 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.4662, allocations: 422.1 kB / 405.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.4665, allocations: 143.7 kB / 405.4 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.4667, allocations: 155.4 kB / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.4669, allocations: 175.2 kB / 405.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.296e-05/0.467, allocations: 36 kB / 405.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.428e-05/0.4671, allocations: 32 kB / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.381e-05/0.4672, allocations: 83.69 kB / 405.9 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.4674, allocations: 183.1 kB / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.4679, allocations: 427.6 kB / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4679, allocations: 0 / 406.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.332e-06/0.4679, allocations: 4 kB / 406.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.4679, allocations: 7.938 kB / 406.5 MB, free: 3.031 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.001171/0.4691, allocations: 0.6354 MB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.4692, allocations: 11.89 kB / 407.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.907e-05/0.4693, allocations: 40.47 kB / 407.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.4697, allocations: 289.2 kB / 407.5 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.154e-05/0.4698, allocations: 76.62 kB / 407.6 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.054e-05/0.4699, allocations: 40.34 kB / 407.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.4705, allocations: 338.9 kB / 407.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.4705, allocations: 0 / 407.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.4706, allocations: 16 kB / 408 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.4706, allocations: 8 kB / 408 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.471, allocations: 218.5 kB / 408.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.473, allocations: 1.356 MB / 409.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004495/0.4734, allocations: 174.5 kB / 409.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.4736, allocations: 88.77 kB / 409.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.4737, allocations: 4 kB / 409.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.4741, allocations: 155.6 kB / 409.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.494e-06/0.4741, allocations: 0 / 409.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001265/0.4754, allocations: 409.3 kB / 410.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.4755, allocations: 110.8 kB / 410.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/0.4758, allocations: 262.6 kB / 410.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.4759, allocations: 29.7 kB / 410.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.4761, allocations: 211.9 kB / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.388e-05/0.4761, allocations: 63.02 kB / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.4763, allocations: 66.02 kB / 411.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4764, allocations: 334.8 kB / 411.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.4766, allocations: 76.62 kB / 411.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.4768, allocations: 181.5 kB / 411.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.4772, allocations: 236.2 kB / 411.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.4772, allocations: 4 kB / 411.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006777/0.4779, allocations: 344.2 kB / 412.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.478, allocations: 10.5 kB / 412.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.478, allocations: 0 / 412.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.4783, allocations: 64.94 kB / 412.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.4786, allocations: 59.91 kB / 412.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.4803, allocations: 1.568 MB / 413.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.4805, allocations: 43.67 kB / 414 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.4806, allocations: 20.08 kB / 414 MB, free: 11.02 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.0001682/0.4808, allocations: 149.8 kB / 414.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.4808, allocations: 23.72 kB / 414.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.723e-05/0.4809, allocations: 38.11 kB / 414.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4809, allocations: 4 kB / 414.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.4809, allocations: 0 / 414.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.4809, allocations: 0 / 414.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004202/0.4813, allocations: 345.3 kB / 414.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.4813, allocations: 0 / 414.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.4815, allocations: 39.92 kB / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001841/0.4817, allocations: 56.69 kB / 414.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.4818, allocations: 4 kB / 414.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001304/0.4831, allocations: 1.414 MB / 416 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4831, allocations: 4.156 kB / 416 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007344/0.4838, allocations: 348.1 kB / 416.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.484, allocations: 120.7 kB / 416.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.37e-05/0.4841, allocations: 4 kB / 416.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.4842, allocations: 24.05 kB / 416.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.525e-05/0.4843, allocations: 27.89 kB / 416.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.4844, allocations: 8 kB / 416.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.4846, allocations: 186 kB / 416.8 MB, free: 8 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4846, allocations: 0 / 416.8 MB, free: 8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.485, allocations: 87.75 kB / 416.8 MB, free: 7.914 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.0001965/0.4852, allocations: 111.2 kB / 416.9 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006987/0.4859, allocations: 314.4 kB / 417.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4859, allocations: 0 / 417.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.4862, allocations: 206.5 kB / 417.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.4865, allocations: 37.19 kB / 417.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.4884, allocations: 0.6761 MB / 418.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.4889, allocations: 0.7714 MB / 418.9 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.489, allocations: 30.27 kB / 419 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.142e-05/0.4891, allocations: 19.44 kB / 419 MB, free: 5.676 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4891, allocations: 0 / 419 MB, free: 5.676 MB / 334.1 MB Notification: Performance of Templates: time 0.008448/0.4976, allocations: 3.14 MB / 422.1 MB, free: 2.562 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