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.001228/0.001228, allocations: 110.5 kB / 17.73 MB, free: 5.32 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.001231/0.001231, allocations: 187 kB / 18.66 MB, free: 4.395 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.642/1.642, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001228/0.001228, allocations: 59.92 kB / 328.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1347, allocations: 46.61 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004882/0.1396, allocations: 3.096 MB / 378.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.1414, allocations: 0.7912 MB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.1416, allocations: 8 kB / 379 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.1419, allocations: 63.36 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.1421, allocations: 99.05 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.1426, allocations: 111.8 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2824/0.4251, allocations: 417.9 kB / 379.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006085/0.4257, allocations: 140.4 kB / 379.9 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006065/0.4264, allocations: 157.5 kB / 380 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.4271, allocations: 178.8 kB / 380.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.4273, allocations: 34.81 kB / 380.2 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.4276, allocations: 35.19 kB / 380.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.4277, allocations: 77.66 kB / 380.3 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004663/0.4282, allocations: 187.8 kB / 380.5 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008801/0.4291, allocations: 423.3 kB / 380.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.834e-06/0.4291, allocations: 2.344 kB / 380.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4291, allocations: 4.938 kB / 380.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.636e-05/0.4292, allocations: 0 / 380.9 MB, free: 9.625 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.001713/0.4309, allocations: 0.6469 MB / 381.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.431, allocations: 13.12 kB / 381.6 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.4311, allocations: 41.69 kB / 381.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007066/0.4319, allocations: 281.3 kB / 381.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.432, allocations: 79.08 kB / 382 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.719e-05/0.4321, allocations: 30.62 kB / 382 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009914/0.4331, allocations: 345.2 kB / 382.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.4331, allocations: 0 / 382.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.4332, allocations: 12.25 kB / 382.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.4332, allocations: 9.641 kB / 382.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007018/0.4339, allocations: 218.4 kB / 382.6 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.4365, allocations: 1.359 MB / 383.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.4368, allocations: 169.2 kB / 384.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.4371, allocations: 90.19 kB / 384.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.4371, allocations: 6.281 kB / 384.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003099/0.4374, allocations: 155.8 kB / 384.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.943e-06/0.4374, allocations: 0 / 384.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001208/0.4386, allocations: 402.9 kB / 384.8 MB, free: 7.723 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.4387, allocations: 110.6 kB / 384.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.439, allocations: 261.2 kB / 385.1 MB, free: 7.488 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.4391, allocations: 30.55 kB / 385.1 MB, free: 7.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.4392, allocations: 212.2 kB / 385.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.057e-05/0.4393, allocations: 70.12 kB / 385.4 MB, free: 7.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.4395, allocations: 64.05 kB / 385.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4396, allocations: 335.1 kB / 385.8 MB, free: 6.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.4398, allocations: 77.75 kB / 385.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.44, allocations: 188.6 kB / 386.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.4404, allocations: 231.8 kB / 386.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.4404, allocations: 5.438 kB / 386.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007824/0.4412, allocations: 339.8 kB / 386.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4412, allocations: 6.984 kB / 386.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.4412, allocations: 6.25 kB / 386.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000346/0.4416, allocations: 50.83 kB / 386.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.4419, allocations: 66.42 kB / 386.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.4431, allocations: 1.568 MB / 388.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.4435, allocations: 50.23 kB / 388.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.829e-05/0.4435, allocations: 15.03 kB / 388.4 MB, free: 4.859 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.0001975/0.4437, allocations: 146.9 kB / 388.5 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.4438, allocations: 25.22 kB / 388.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.074e-05/0.4439, allocations: 32.06 kB / 388.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4439, allocations: 6.75 kB / 388.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.4439, allocations: 4.078 kB / 388.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4439, allocations: 0.6562 kB / 388.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.4443, allocations: 342.9 kB / 388.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4443, allocations: 1.094 kB / 388.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.4446, allocations: 38.89 kB / 389 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.4448, allocations: 51.58 kB / 389 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.4448, allocations: 10.09 kB / 389 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000952/0.4458, allocations: 1.419 MB / 390.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4458, allocations: 3.797 kB / 390.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.4465, allocations: 353.7 kB / 390.8 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.4467, allocations: 112.5 kB / 390.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.4467, allocations: 7.172 kB / 390.9 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.4469, allocations: 20.09 kB / 390.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.447, allocations: 30.3 kB / 391 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.4471, allocations: 10.58 kB / 391 MB, free: 2.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.4473, allocations: 188.9 kB / 391.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4473, allocations: 0 / 391.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.4477, allocations: 89.94 kB / 391.3 MB, free: 2.539 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.0001345/0.4479, allocations: 102.6 kB / 391.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006345/0.4485, allocations: 316.4 kB / 391.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4485, allocations: 4.125 kB / 391.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.4488, allocations: 204.5 kB / 391.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.4491, allocations: 30.91 kB / 391.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.4508, allocations: 0.6663 MB / 392.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.4511, allocations: 0.7691 MB / 393.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.4512, allocations: 27.12 kB / 393.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.088e-05/0.4513, allocations: 26.14 kB / 393.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of SimCode: time 5e-07/0.4513, allocations: 0 / 393.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of Templates: time 0.009372/0.4606, allocations: 3.156 MB / 396.5 MB, free: 0.7773 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/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