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.001105/0.001105, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007876/0.0007876, allocations: 99.64 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1945, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002116/0.1967, allocations: 2.445 MB / 409.9 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009663/0.1977, allocations: 0.7205 MB / 410.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1978, allocations: 4 kB / 410.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.1979, allocations: 39.69 kB / 410.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.1981, allocations: 77.31 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.1984, allocations: 79.84 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.1986, allocations: 339.3 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.1988, allocations: 99.5 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.002e-05/0.1989, allocations: 115.6 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.199, allocations: 131.4 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.1991, allocations: 19.53 kB / 411.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.075e-05/0.1991, allocations: 16 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.542e-05/0.1991, allocations: 51.81 kB / 411.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.115e-05/0.1992, allocations: 85.52 kB / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.1994, allocations: 256.2 kB / 411.9 MB, free: 23.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1994, allocations: 3.938 kB / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1994, allocations: 0 / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1994, allocations: 0 / 412 MB, free: 23.35 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.0007778/0.2002, allocations: 0.5646 MB / 412.5 MB, free: 22.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.2002, allocations: 8.031 kB / 412.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.762e-05/0.2003, allocations: 39.61 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.2005, allocations: 251.2 kB / 412.8 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.2006, allocations: 72.06 kB / 412.9 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.2006, allocations: 35.95 kB / 412.9 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.201, allocations: 297.8 kB / 413.2 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2011, allocations: 0 / 413.2 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.2011, allocations: 8 kB / 413.2 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2011, allocations: 8 kB / 413.2 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.2014, allocations: 190.1 kB / 413.4 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.2026, allocations: 1.147 MB / 414.6 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.2029, allocations: 154.6 kB / 414.7 MB, free: 20.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.203, allocations: 76.83 kB / 414.8 MB, free: 20.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.203, allocations: 4 kB / 414.8 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.2033, allocations: 161.9 kB / 414.9 MB, free: 20.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.604e-06/0.2033, allocations: 0 / 414.9 MB, free: 20.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009269/0.2042, allocations: 396.2 kB / 415.3 MB, free: 19.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.2043, allocations: 114.8 kB / 415.4 MB, free: 19.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.2044, allocations: 224.9 kB / 415.7 MB, free: 19.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2045, allocations: 33.7 kB / 415.7 MB, free: 19.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.2046, allocations: 180.1 kB / 415.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.2046, allocations: 67.14 kB / 415.9 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.2046, allocations: 8 kB / 415.9 MB, free: 19.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.2047, allocations: 338.8 kB / 416.3 MB, free: 18.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.994e-05/0.2048, allocations: 67.83 kB / 416.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.2049, allocations: 140.8 kB / 416.5 MB, free: 18.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.205, allocations: 73.16 kB / 416.5 MB, free: 18.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.205, allocations: 3.938 kB / 416.6 MB, free: 18.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003309/0.2054, allocations: 268.7 kB / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2054, allocations: 8 kB / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.2054, allocations: 0 / 416.8 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.2057, allocations: 64.98 kB / 416.9 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.2059, allocations: 51.91 kB / 416.9 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008703/0.2067, allocations: 1.405 MB / 418.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.207, allocations: 43.7 kB / 418.4 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.207, allocations: 12 kB / 418.4 MB, free: 16.43 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.0001119/0.2071, allocations: 155.4 kB / 418.5 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.2071, allocations: 27.7 kB / 418.6 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.2072, allocations: 30.17 kB / 418.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2072, allocations: 0 / 418.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.2072, allocations: 0 / 418.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2072, allocations: 4 kB / 418.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.2074, allocations: 317.3 kB / 418.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2074, allocations: 0 / 418.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001492/0.2076, allocations: 39.91 kB / 419 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001731/0.2078, allocations: 60.81 kB / 419 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2078, allocations: 0 / 419 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007198/0.2085, allocations: 1.32 MB / 420.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2085, allocations: 0 / 420.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.2091, allocations: 333.6 kB / 420.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.952e-05/0.2091, allocations: 116.8 kB / 420.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.2092, allocations: 4 kB / 420.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.2093, allocations: 27.98 kB / 420.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.2094, allocations: 31.94 kB / 420.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.2094, allocations: 8 kB / 420.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.986e-05/0.2095, allocations: 164.5 kB / 421 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2095, allocations: 0 / 421 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.2099, allocations: 75.84 kB / 421.1 MB, free: 13.5 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.0001109/0.21, allocations: 107.2 kB / 421.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004393/0.2104, allocations: 282.5 kB / 421.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2104, allocations: 3.984 kB / 421.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.2107, allocations: 194.5 kB / 421.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.211, allocations: 39.09 kB / 421.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.2123, allocations: 0.8447 MB / 422.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001438/0.2125, allocations: 0.7599 MB / 423.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.4e-05/0.2125, allocations: 23.38 kB / 423.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2125, allocations: 3.938 kB / 423.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of Templates: time 0.00458/0.2171, allocations: 4.131 MB / 427.5 MB, free: 7.055 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