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.001011/0.001011, allocations: 107.1 kB / 18.4 MB, free: 4.645 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.000993/0.000993, allocations: 188.5 kB / 19.34 MB, free: 3.723 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.243/1.243, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001208/0.001209, allocations: 51.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07194/0.07316, allocations: 46.61 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003985/0.07718, allocations: 3.088 MB / 378.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.07843, allocations: 0.7991 MB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.07861, allocations: 4 kB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.07881, allocations: 63.36 kB / 379.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.07902, allocations: 103 kB / 379.9 MB, free: 496 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.07935, allocations: 111.8 kB / 380 MB, free: 384 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1455/0.2248, allocations: 413.4 kB / 380.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.2251, allocations: 137.5 kB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.2255, allocations: 161.9 kB / 380.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.2257, allocations: 176.2 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.744e-05/0.2258, allocations: 34.84 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.6e-05/0.2259, allocations: 35.75 kB / 380.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.574e-05/0.2259, allocations: 81.27 kB / 381 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.2261, allocations: 183.6 kB / 381.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004381/0.2266, allocations: 423.4 kB / 381.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2266, allocations: 0 / 381.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2266, allocations: 3.938 kB / 381.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2266, allocations: 4.781 kB / 381.6 MB, free: 9.617 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.001013/0.2276, allocations: 0.6469 MB / 382.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2277, allocations: 13.48 kB / 382.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.77e-05/0.2278, allocations: 42.03 kB / 382.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.2281, allocations: 277.9 kB / 382.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.933e-05/0.2282, allocations: 80.06 kB / 382.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.2282, allocations: 30.91 kB / 382.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.2289, allocations: 341.2 kB / 383 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.2289, allocations: 5 kB / 383 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.2289, allocations: 12.62 kB / 383 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2289, allocations: 8.266 kB / 383.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004823/0.2294, allocations: 221.2 kB / 383.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.2312, allocations: 1.357 MB / 384.6 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.2315, allocations: 168.4 kB / 384.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.2317, allocations: 93.11 kB / 384.9 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.2317, allocations: 6.156 kB / 384.9 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.2319, allocations: 154.3 kB / 385 MB, free: 7.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.232, allocations: 0 / 385 MB, free: 7.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001097/0.2331, allocations: 398.8 kB / 385.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.2331, allocations: 110.6 kB / 385.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.2334, allocations: 261.4 kB / 385.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.2334, allocations: 31.22 kB / 385.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.288e-05/0.2335, allocations: 211.2 kB / 386 MB, free: 7.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.2336, allocations: 69.47 kB / 386.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.804e-05/0.2337, allocations: 64.11 kB / 386.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.187e-05/0.2337, allocations: 337.8 kB / 386.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.2339, allocations: 79.97 kB / 386.6 MB, free: 6.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.2341, allocations: 181.7 kB / 386.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.2344, allocations: 232.8 kB / 387 MB, free: 6.602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2344, allocations: 7.938 kB / 387 MB, free: 6.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006489/0.2351, allocations: 333.4 kB / 387.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2351, allocations: 16.38 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2351, allocations: 1.875 kB / 387.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/0.2354, allocations: 56.25 kB / 387.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.2356, allocations: 62.08 kB / 387.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009859/0.2366, allocations: 1.573 MB / 389 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.2369, allocations: 46.7 kB / 389.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.237, allocations: 14.39 kB / 389.1 MB, free: 4.852 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.0001219/0.2371, allocations: 149.2 kB / 389.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.2371, allocations: 25.06 kB / 389.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.009e-05/0.2372, allocations: 35.53 kB / 389.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2372, allocations: 6.062 kB / 389.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2372, allocations: 2.438 kB / 389.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.408e-05/0.2373, allocations: 117.5 kB / 389.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/0.2373, allocations: 2.625 kB / 389.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.2375, allocations: 23.58 kB / 389.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.2376, allocations: 19.44 kB / 389.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005749/0.2382, allocations: 304.5 kB / 389.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004911/0.2387, allocations: 447.6 kB / 390.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001393/0.2388, allocations: 76.39 kB / 390.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.239, allocations: 190 kB / 390.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of Backend: time 2.31e-07/0.239, allocations: 0 / 390.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000736/0.2397, allocations: 336 kB / 390.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of SimCode: time 0.0009416/0.2407, allocations: 1.068 MB / 391.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of Templates: time 0.007636/0.2483, allocations: 3.333 MB / 395.2 MB, free: 2.625 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