Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001571/0.001571, allocations: 116.1 kB / 17.75 MB, free: 5.223 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.001801/0.001801, allocations: 181.4 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 47.94 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2216, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003886/0.2255, allocations: 3.144 MB / 404.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2266, allocations: 0.7439 MB / 405.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.2268, allocations: 7.938 kB / 405.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.2269, allocations: 63.42 kB / 405.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.2271, allocations: 95.06 kB / 405.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.2274, allocations: 111.8 kB / 405.6 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.2278, allocations: 414.2 kB / 406 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.2281, allocations: 147.7 kB / 406.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.2282, allocations: 163.4 kB / 406.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.2285, allocations: 171.2 kB / 406.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.506e-05/0.2285, allocations: 36 kB / 406.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/0.2286, allocations: 32 kB / 406.5 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.2287, allocations: 87.73 kB / 406.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.2288, allocations: 179.1 kB / 406.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003658/0.2292, allocations: 431.6 kB / 407.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.2292, allocations: 0 / 407.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.898e-06/0.2292, allocations: 4 kB / 407.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.2292, allocations: 0 / 407.2 MB, free: 3.07 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.001005/0.2302, allocations: 0.6471 MB / 407.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2303, allocations: 11.89 kB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.422e-05/0.2304, allocations: 40.47 kB / 407.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.2307, allocations: 281.2 kB / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.04e-05/0.2308, allocations: 80.62 kB / 408.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.2309, allocations: 28.38 kB / 408.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000551/0.2314, allocations: 338.9 kB / 408.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2314, allocations: 0 / 408.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.2315, allocations: 19.98 kB / 408.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2315, allocations: 8 kB / 408.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004281/0.2319, allocations: 226.4 kB / 408.9 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.2338, allocations: 1.356 MB / 410.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.2341, allocations: 170.4 kB / 410.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.2343, allocations: 100.8 kB / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.2343, allocations: 4 kB / 410.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002636/0.2346, allocations: 151.6 kB / 410.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.2346, allocations: 0 / 410.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001121/0.2357, allocations: 405.3 kB / 411 MB, free: 14.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.2358, allocations: 110.8 kB / 411.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.2361, allocations: 262.6 kB / 411.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.2361, allocations: 29.7 kB / 411.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.2363, allocations: 215.9 kB / 411.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.613e-05/0.2363, allocations: 67 kB / 411.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.141e-05/0.2364, allocations: 62.03 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2365, allocations: 338.8 kB / 412.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.2367, allocations: 72.62 kB / 412.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.2369, allocations: 185.4 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003474/0.2373, allocations: 232.3 kB / 412.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2373, allocations: 4 kB / 412.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006943/0.238, allocations: 344.1 kB / 412.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.238, allocations: 4.344 kB / 412.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2381, allocations: 8 kB / 412.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002654/0.2383, allocations: 56.75 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.2386, allocations: 63.91 kB / 413 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.2399, allocations: 1.572 MB / 414.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.2402, allocations: 39.67 kB / 414.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.2402, allocations: 16 kB / 414.7 MB, free: 11.05 MB / 334.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.0001402/0.2404, allocations: 145.8 kB / 414.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.2404, allocations: 27.7 kB / 414.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.92e-05/0.2405, allocations: 42.17 kB / 414.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2405, allocations: 3.984 kB / 414.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2405, allocations: 0 / 414.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.877e-05/0.2406, allocations: 108.8 kB / 415 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.2406, allocations: 11.98 kB / 415 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.2408, allocations: 19.98 kB / 415 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.2409, allocations: 19.97 kB / 415 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006153/0.2415, allocations: 304.5 kB / 415.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005536/0.2421, allocations: 442.3 kB / 415.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001443/0.2422, allocations: 76 kB / 415.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.2424, allocations: 193.9 kB / 416 MB, free: 9.621 MB / 334.1 MB Notification: Performance of Backend: time 3.91e-07/0.2424, allocations: 0 / 416 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007689/0.2432, allocations: 332.8 kB / 416.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of SimCode: time 0.001091/0.2443, allocations: 1.075 MB / 417.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of Templates: time 0.007194/0.2515, allocations: 3.339 MB / 420.8 MB, free: 4.844 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches