Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009314/0.0009315, allocations: 195.5 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007267/0.0007265, allocations: 101.9 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002179/0.000218, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2233, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.001958/0.2253, allocations: 2.442 MB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008404/0.2262, allocations: 0.7241 MB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.2263, allocations: 4 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.2264, allocations: 43.69 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.2265, allocations: 71.38 kB / 411.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.2267, allocations: 80.64 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002331/0.227, allocations: 343.1 kB / 411.7 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2272, allocations: 105.6 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.252e-05/0.2273, allocations: 110.8 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.2274, allocations: 135.4 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.2274, allocations: 19.98 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.2275, allocations: 16 kB / 412.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.637e-05/0.2275, allocations: 51.83 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2276, allocations: 165 kB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.2278, allocations: 260.2 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2278, allocations: 0 / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2278, allocations: 4 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2278, allocations: 0 / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006982/0.2285, allocations: 0.5667 MB / 413.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.2286, allocations: 8.031 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.2286, allocations: 32.56 kB / 413.2 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.2289, allocations: 256.4 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.964e-05/0.2289, allocations: 84.61 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.229, allocations: 28.38 kB / 413.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2294, allocations: 297.8 kB / 413.9 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2294, allocations: 4 kB / 413.9 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.2294, allocations: 16 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2294, allocations: 8 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.2297, allocations: 186.1 kB / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.231, allocations: 1.147 MB / 415.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.2313, allocations: 150.5 kB / 415.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.2314, allocations: 83.23 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.2314, allocations: 0 / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.2316, allocations: 161.2 kB / 415.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.2317, allocations: 0 / 415.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008589/0.2325, allocations: 395.1 kB / 416 MB, free: 19.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.2326, allocations: 110.8 kB / 416.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.2327, allocations: 225 kB / 416.3 MB, free: 19.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.2328, allocations: 33.7 kB / 416.3 MB, free: 19.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.2328, allocations: 184.1 kB / 416.5 MB, free: 18.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.2329, allocations: 63.09 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/0.2329, allocations: 12 kB / 416.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.728e-05/0.2329, allocations: 334.8 kB / 416.9 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2331, allocations: 67.83 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.2332, allocations: 132.8 kB / 417.1 MB, free: 18.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.2334, allocations: 192.2 kB / 417.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2334, allocations: 4 kB / 417.3 MB, free: 18.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003472/0.2338, allocations: 268.4 kB / 417.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2338, allocations: 7.984 kB / 417.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2338, allocations: 4 kB / 417.6 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000232/0.234, allocations: 61.03 kB / 417.6 MB, free: 17.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.2342, allocations: 47.92 kB / 417.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008655/0.2351, allocations: 1.408 MB / 419.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.2353, allocations: 39.77 kB / 419.1 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.2353, allocations: 16.09 kB / 419.1 MB, free: 16.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.2355, allocations: 150.7 kB / 419.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.735e-05/0.2355, allocations: 27.64 kB / 419.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.879e-05/0.2355, allocations: 34.17 kB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2356, allocations: 0 / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.2356, allocations: 0 / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2356, allocations: 3.984 kB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.2358, allocations: 317.4 kB / 419.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2358, allocations: 8 kB / 419.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.236, allocations: 35.86 kB / 419.7 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.2361, allocations: 52.81 kB / 419.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.2362, allocations: 4 kB / 419.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007096/0.2369, allocations: 1.323 MB / 421.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2369, allocations: 4.156 kB / 421.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.2374, allocations: 328.3 kB / 421.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.912e-05/0.2375, allocations: 112.8 kB / 421.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.2375, allocations: 11.92 kB / 421.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.2377, allocations: 27.98 kB / 421.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.2378, allocations: 27.95 kB / 421.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.2378, allocations: 11.92 kB / 421.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.2379, allocations: 160.5 kB / 421.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2379, allocations: 0 / 421.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003048/0.2382, allocations: 75.84 kB / 421.8 MB, free: 13.15 MB / 298.7 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001066/0.2383, allocations: 115 kB / 421.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.2388, allocations: 274.5 kB / 422.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2388, allocations: 0 / 422.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.239, allocations: 194.5 kB / 422.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.2393, allocations: 40.8 kB / 422.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.2405, allocations: 0.8473 MB / 423.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.2407, allocations: 0.7599 MB / 424.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.483e-05/0.2407, allocations: 23.38 kB / 424.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2407, allocations: 0 / 424.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of Templates: time 0.004397/0.2451, allocations: 4.127 MB / 428.2 MB, free: 6.711 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches