Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001471/0.001471, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001427/0.001427, allocations: 190.5 kB / 19.33 MB, free: 3.715 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.473/1.473, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.00131/0.00131, allocations: 59.91 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08485/0.08617, allocations: 46.6 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004521/0.09073, allocations: 3.097 MB / 378.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.0926, allocations: 0.7951 MB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/0.09298, allocations: 12 kB / 379.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.09328, allocations: 55.44 kB / 379.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003908/0.09368, allocations: 99.05 kB / 379.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.09417, allocations: 107.8 kB / 380 MB, free: 392 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2435/0.3377, allocations: 418.8 kB / 380.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004522/0.3382, allocations: 141.6 kB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.3387, allocations: 162.8 kB / 380.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/0.339, allocations: 172.4 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.111e-05/0.3391, allocations: 35.44 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.241e-05/0.3391, allocations: 34.84 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.767e-05/0.3392, allocations: 79.69 kB / 381 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.3394, allocations: 187.5 kB / 381.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000624/0.3401, allocations: 424.2 kB / 381.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3401, allocations: 0 / 381.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.788e-06/0.3401, allocations: 4.938 kB / 381.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.3401, allocations: 7.5 kB / 381.6 MB, free: 9.613 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.001114/0.3412, allocations: 0.6415 MB / 382.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3413, allocations: 15.23 kB / 382.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.3414, allocations: 41.31 kB / 382.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.3418, allocations: 276.9 kB / 382.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.714e-05/0.3419, allocations: 79.66 kB / 382.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.413e-05/0.342, allocations: 34.2 kB / 382.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/0.3428, allocations: 341.6 kB / 383 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3428, allocations: 0.5 kB / 383 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.503e-05/0.3428, allocations: 14.77 kB / 383 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.3429, allocations: 7.875 kB / 383 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.3434, allocations: 219.2 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.3455, allocations: 1.36 MB / 384.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.3459, allocations: 169.2 kB / 384.8 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.3461, allocations: 91.88 kB / 384.9 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.3461, allocations: 6.188 kB / 384.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003322/0.3465, allocations: 154.1 kB / 385 MB, free: 7.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.355e-06/0.3465, allocations: 0 / 385 MB, free: 7.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00119/0.3477, allocations: 400.3 kB / 385.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.3477, allocations: 110.7 kB / 385.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003054/0.3481, allocations: 261.9 kB / 385.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.3481, allocations: 32.11 kB / 385.8 MB, free: 7.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.3482, allocations: 211.4 kB / 386 MB, free: 7.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/0.3483, allocations: 72.38 kB / 386.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.3484, allocations: 64.45 kB / 386.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3485, allocations: 336.3 kB / 386.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.3487, allocations: 76.81 kB / 386.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.3489, allocations: 180.2 kB / 386.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3493, allocations: 237.1 kB / 387 MB, free: 6.594 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3493, allocations: 5.5 kB / 387 MB, free: 6.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006959/0.35, allocations: 340.4 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.35, allocations: 6.188 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.3501, allocations: 7.625 kB / 387.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003265/0.3504, allocations: 55.05 kB / 387.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.3507, allocations: 60.14 kB / 387.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.3518, allocations: 1.571 MB / 389 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.3521, allocations: 46.36 kB / 389 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.3522, allocations: 14.92 kB / 389.1 MB, free: 4.848 MB / 318.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.0001484/0.3523, allocations: 146.7 kB / 389.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.3524, allocations: 25.59 kB / 389.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.891e-05/0.3524, allocations: 35.34 kB / 389.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3525, allocations: 6.281 kB / 389.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3525, allocations: 3.375 kB / 389.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3525, allocations: 1.453 kB / 389.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004043/0.3529, allocations: 339.1 kB / 389.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3529, allocations: 3.938 kB / 389.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.3531, allocations: 38.3 kB / 389.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001889/0.3533, allocations: 56.02 kB / 389.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3533, allocations: 6.391 kB / 389.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009825/0.3543, allocations: 1.418 MB / 391.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3543, allocations: 0 / 391.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.3551, allocations: 355 kB / 391.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.3552, allocations: 116.7 kB / 391.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.3552, allocations: 7.469 kB / 391.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.3554, allocations: 15.08 kB / 391.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.3555, allocations: 36.31 kB / 391.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.3555, allocations: 5.156 kB / 391.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001865/0.3557, allocations: 185.9 kB / 391.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3557, allocations: 1.125 kB / 391.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004142/0.3562, allocations: 88.38 kB / 391.9 MB, free: 2.527 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: 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.0001489/0.3563, allocations: 106.8 kB / 392 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006349/0.357, allocations: 312 kB / 392.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.357, allocations: 4.125 kB / 392.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.3573, allocations: 209 kB / 392.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3576, allocations: 39.17 kB / 392.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.3591, allocations: 0.6948 MB / 393.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.3594, allocations: 0.7689 MB / 394 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.185e-05/0.3594, allocations: 23.7 kB / 394.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3595, allocations: 1.156 kB / 394.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of Templates: time 0.009296/0.3688, allocations: 4.653 MB / 398.7 MB, free: 0.5117 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches