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.001268/0.001268, allocations: 107 kB / 18.4 MB, free: 4.676 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.001063/0.001063, allocations: 188.3 kB / 19.34 MB, free: 3.754 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.508/1.508, allocations: 205.1 MB / 225.2 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.00155/0.00155, allocations: 51.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.122, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005355/0.1274, allocations: 3.095 MB / 378.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1294, allocations: 0.7952 MB / 379.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004291/0.1298, allocations: 8 kB / 379.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.1302, allocations: 55.42 kB / 379.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004442/0.1307, allocations: 107 kB / 379.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.1312, allocations: 107.8 kB / 380 MB, free: 408 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2586/0.3899, allocations: 417.8 kB / 380.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.3903, allocations: 137.8 kB / 380.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003831/0.3907, allocations: 156.2 kB / 380.7 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.391, allocations: 179.2 kB / 380.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.073e-05/0.391, allocations: 34.81 kB / 380.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.337e-05/0.3911, allocations: 34.72 kB / 380.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.3912, allocations: 81.53 kB / 381 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.3914, allocations: 184.3 kB / 381.2 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.392, allocations: 423.5 kB / 381.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.392, allocations: 3.938 kB / 381.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.392, allocations: 4.078 kB / 381.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.392, allocations: 0 / 381.6 MB, free: 9.648 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.001102/0.3931, allocations: 0.6445 MB / 382.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3932, allocations: 15.36 kB / 382.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.3933, allocations: 40.47 kB / 382.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.3937, allocations: 279.7 kB / 382.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-05/0.3938, allocations: 79.61 kB / 382.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.3939, allocations: 33.53 kB / 382.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.3946, allocations: 344 kB / 383 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3946, allocations: 0.5625 kB / 383 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/0.3946, allocations: 13.67 kB / 383 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.3947, allocations: 8.719 kB / 383.1 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005674/0.3952, allocations: 220.8 kB / 383.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.3972, allocations: 1.356 MB / 384.6 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.3975, allocations: 170.8 kB / 384.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.3977, allocations: 93.31 kB / 384.9 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.3977, allocations: 5 kB / 384.9 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00028/0.398, allocations: 152.1 kB / 385 MB, free: 7.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.003e-06/0.398, allocations: 0 / 385 MB, free: 7.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001142/0.3992, allocations: 401.2 kB / 385.4 MB, free: 7.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.3993, allocations: 113.2 kB / 385.5 MB, free: 7.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.3995, allocations: 259.1 kB / 385.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.3996, allocations: 32.19 kB / 385.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3997, allocations: 213 kB / 386 MB, free: 7.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.254e-05/0.3998, allocations: 69.12 kB / 386.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3999, allocations: 64.5 kB / 386.2 MB, free: 7.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.112e-05/0.4, allocations: 335.1 kB / 386.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.4001, allocations: 77.88 kB / 386.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.4004, allocations: 180.1 kB / 386.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.4007, allocations: 242.5 kB / 387 MB, free: 6.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4007, allocations: 5.094 kB / 387 MB, free: 6.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007181/0.4015, allocations: 333.6 kB / 387.3 MB, free: 6.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4015, allocations: 10.22 kB / 387.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.4015, allocations: 7.75 kB / 387.3 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.4018, allocations: 51.44 kB / 387.4 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.4021, allocations: 67.06 kB / 387.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.4034, allocations: 1.573 MB / 389 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.4037, allocations: 46.38 kB / 389.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.4037, allocations: 17.36 kB / 389.1 MB, free: 4.883 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.0001566/0.4039, allocations: 146.3 kB / 389.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.4039, allocations: 25.17 kB / 389.2 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/0.404, allocations: 27.59 kB / 389.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.404, allocations: 9.875 kB / 389.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.404, allocations: 0.5625 kB / 389.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.933e-05/0.4041, allocations: 117.5 kB / 389.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.4041, allocations: 7.359 kB / 389.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.4043, allocations: 21.98 kB / 389.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.975e-05/0.4044, allocations: 23.28 kB / 389.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006004/0.405, allocations: 301.4 kB / 389.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005585/0.4056, allocations: 447.1 kB / 390.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001643/0.4058, allocations: 76.58 kB / 390.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.406, allocations: 185.9 kB / 390.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of Backend: time 9.81e-07/0.406, allocations: 0 / 390.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008311/0.4068, allocations: 331.4 kB / 390.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of SimCode: time 0.001162/0.408, allocations: 1.073 MB / 391.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of Templates: time 0.009765/0.4178, allocations: 3.428 MB / 395.3 MB, free: 2.637 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