Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001174/0.001175, allocations: 113.4 kB / 17.73 MB, free: 5.336 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.001281/0.00128, allocations: 184.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 51.94 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1023, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004995/0.1073, allocations: 2.82 MB / 378 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1091, allocations: 0.7717 MB / 378.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004074/0.1095, allocations: 7.938 kB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.1099, allocations: 59.5 kB / 378.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.1102, allocations: 87.17 kB / 378.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005205/0.1108, allocations: 107.8 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005566/0.1113, allocations: 370.3 kB / 379.4 MB, free: 352 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.1116, allocations: 119.2 kB / 379.5 MB, free: 228 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.1119, allocations: 131.6 kB / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2227/0.3346, allocations: 150.7 kB / 379.7 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002071/0.3349, allocations: 30.09 kB / 379.8 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.3351, allocations: 30.25 kB / 379.8 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.3352, allocations: 72 kB / 379.9 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002883/0.3355, allocations: 163.3 kB / 380 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007744/0.3363, allocations: 371.4 kB / 380.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3363, allocations: 1.25 kB / 380.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.3363, allocations: 3.094 kB / 380.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.3363, allocations: 0 / 380.4 MB, free: 9.938 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.001422/0.3378, allocations: 0.6114 MB / 381 MB, free: 9.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.3378, allocations: 9.562 kB / 381 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.338, allocations: 34.92 kB / 381.1 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005009/0.3385, allocations: 263 kB / 381.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.341e-05/0.3386, allocations: 78.3 kB / 381.4 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.3387, allocations: 26.17 kB / 381.4 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000566/0.3392, allocations: 303.4 kB / 381.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3393, allocations: 2.953 kB / 381.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.3393, allocations: 10.88 kB / 381.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.3393, allocations: 6.875 kB / 381.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.3397, allocations: 194.8 kB / 381.9 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.3415, allocations: 1.121 MB / 383 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.3419, allocations: 156.5 kB / 383.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.3421, allocations: 77.89 kB / 383.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.3422, allocations: 2.188 kB / 383.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.3424, allocations: 164.7 kB / 383.4 MB, free: 8.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.3424, allocations: 0 / 383.4 MB, free: 8.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.3435, allocations: 386.4 kB / 383.8 MB, free: 8.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.3436, allocations: 105.7 kB / 383.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.3438, allocations: 229.8 kB / 384.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3439, allocations: 31.92 kB / 384.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.344, allocations: 185.3 kB / 384.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.034e-05/0.3441, allocations: 62.97 kB / 384.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.727e-05/0.3442, allocations: 59.91 kB / 384.5 MB, free: 7.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.3443, allocations: 334.2 kB / 384.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.3444, allocations: 73.17 kB / 384.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.3446, allocations: 143.7 kB / 385 MB, free: 7.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.3449, allocations: 188.3 kB / 385.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3449, allocations: 1.562 kB / 385.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004619/0.3454, allocations: 272.1 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3454, allocations: 5.594 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.3454, allocations: 2.344 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.3457, allocations: 53.38 kB / 385.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.346, allocations: 61.91 kB / 385.6 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.3472, allocations: 1.57 MB / 387.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.3474, allocations: 42.2 kB / 387.2 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.3474, allocations: 10.27 kB / 387.2 MB, free: 5.695 MB / 318.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.0001755/0.3476, allocations: 159.2 kB / 387.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.3477, allocations: 24.56 kB / 387.4 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.3478, allocations: 30.06 kB / 387.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3478, allocations: 1.844 kB / 387.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.3478, allocations: 1.094 kB / 387.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.3478, allocations: 1.219 kB / 387.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.3482, allocations: 324.3 kB / 387.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3482, allocations: 0 / 387.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.3484, allocations: 34.2 kB / 387.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001866/0.3486, allocations: 56.67 kB / 387.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3486, allocations: 5.766 kB / 387.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00099/0.3496, allocations: 1.421 MB / 389.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3496, allocations: 0 / 389.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.3503, allocations: 321.7 kB / 389.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.845e-05/0.3504, allocations: 112.3 kB / 389.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.3505, allocations: 9.922 kB / 389.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.3506, allocations: 17.98 kB / 389.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3508, allocations: 32.77 kB / 389.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.3508, allocations: 12.73 kB / 389.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.351, allocations: 162 kB / 389.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.351, allocations: 0 / 389.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.3514, allocations: 86.5 kB / 390 MB, free: 3.391 MB / 318.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.0001606/0.3516, allocations: 104 kB / 390.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006909/0.3523, allocations: 290.4 kB / 390.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3523, allocations: 5.312 kB / 390.4 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002935/0.3526, allocations: 194.2 kB / 390.6 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.3529, allocations: 41.34 kB / 390.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3545, allocations: 0.6424 MB / 391.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.3547, allocations: 0.7622 MB / 392 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.562e-05/0.3548, allocations: 23.7 kB / 392 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.3549, allocations: 21.19 kB / 392.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3549, allocations: 0 / 392.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of Templates: time 0.008005/0.3629, allocations: 3.087 MB / 395.1 MB, free: 1.688 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches