Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 118.8 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 206 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 230.4 MB / 250 MB, free: 9.012 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.98 kB / 367.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2947, allocations: 53.32 MB / 420.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004599/0.2993, allocations: 3.166 MB / 423.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3008, allocations: 0.8139 MB / 424.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.301, allocations: 7.938 kB / 424.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.3012, allocations: 63.42 kB / 424.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.3014, allocations: 107 kB / 424.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.3018, allocations: 127.7 kB / 425 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000485/0.3023, allocations: 418.2 kB / 425.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002296/0.3025, allocations: 103.7 kB / 425.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.3028, allocations: 163.4 kB / 425.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.303, allocations: 171.2 kB / 425.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.3031, allocations: 40 kB / 425.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.096e-05/0.3032, allocations: 43.98 kB / 425.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.83e-05/0.3032, allocations: 79.69 kB / 426 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.3034, allocations: 187.1 kB / 426.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.304, allocations: 426.1 kB / 426.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.304, allocations: 0 / 426.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.304, allocations: 0 / 426.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.304, allocations: 0 / 426.6 MB, free: 2.43 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.001136/0.3051, allocations: 0.6623 MB / 427.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3051, allocations: 12.03 kB / 427.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.3054, allocations: 52.64 kB / 427.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.3058, allocations: 285.4 kB / 427.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.205e-05/0.3059, allocations: 84.62 kB / 427.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.3059, allocations: 36.31 kB / 427.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005978/0.3065, allocations: 338.9 kB / 428 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3065, allocations: 0 / 428 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.3066, allocations: 15.98 kB / 428 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3066, allocations: 8 kB / 428 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.3071, allocations: 226.5 kB / 428.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.3091, allocations: 1.356 MB / 429.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.3095, allocations: 162.6 kB / 429.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.3097, allocations: 96.62 kB / 429.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.3097, allocations: 0 / 429.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.31, allocations: 153.9 kB / 430 MB, free: 14.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.31, allocations: 0 / 430 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001183/0.3112, allocations: 397.1 kB / 430.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.158e-05/0.3113, allocations: 114.8 kB / 430.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.3116, allocations: 262.7 kB / 430.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.3116, allocations: 37.69 kB / 430.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.3118, allocations: 208.3 kB / 431 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.492e-05/0.3118, allocations: 79.36 kB / 431.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.3119, allocations: 62.02 kB / 431.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3121, allocations: 338.8 kB / 431.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.3123, allocations: 72.62 kB / 431.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.3126, allocations: 177.5 kB / 431.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.3129, allocations: 239.5 kB / 432 MB, free: 12.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3129, allocations: 0 / 432 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007509/0.3137, allocations: 348.5 kB / 432.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3137, allocations: 4 kB / 432.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3137, allocations: 4 kB / 432.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.314, allocations: 52.81 kB / 432.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.3143, allocations: 75.91 kB / 432.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.3158, allocations: 1.568 MB / 434 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.3161, allocations: 47.75 kB / 434 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.3161, allocations: 16 kB / 434.1 MB, free: 10.36 MB / 350.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.0001855/0.3163, allocations: 145.9 kB / 434.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.3164, allocations: 31.84 kB / 434.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.717e-05/0.3164, allocations: 34.12 kB / 434.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3164, allocations: 0 / 434.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3165, allocations: 0 / 434.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3165, allocations: 3.984 kB / 434.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005015/0.317, allocations: 337.4 kB / 434.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.317, allocations: 4 kB / 434.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3172, allocations: 43.91 kB / 434.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.3174, allocations: 56.75 kB / 434.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.3174, allocations: 4 kB / 434.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.3188, allocations: 1.415 MB / 436.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3188, allocations: 0 / 436.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007927/0.3196, allocations: 354.8 kB / 436.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3197, allocations: 113 kB / 436.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.3198, allocations: 0 / 436.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.32, allocations: 19.98 kB / 436.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.3201, allocations: 35.95 kB / 436.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.3201, allocations: 15.92 kB / 436.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3203, allocations: 186 kB / 436.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3203, allocations: 3.938 kB / 436.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004181/0.3207, allocations: 91.78 kB / 436.9 MB, free: 7.25 MB / 350.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.0001422/0.3209, allocations: 103.9 kB / 437 MB, free: 7.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006559/0.3215, allocations: 309.9 kB / 437.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3215, allocations: 0 / 437.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003339/0.3219, allocations: 202.5 kB / 437.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.3221, allocations: 28.55 kB / 437.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.3237, allocations: 0.6873 MB / 438.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.3242, allocations: 0.7675 MB / 439 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.3243, allocations: 34.27 kB / 439 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.804e-05/0.3243, allocations: 23.44 kB / 439.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3243, allocations: 4 kB / 439.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of Templates: time 0.008197/0.3325, allocations: 3.185 MB / 442.3 MB, free: 1.863 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches