Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 197.8 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 226.6 MB / 244.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007069/0.000707, allocations: 93.52 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002203/0.0002205, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1915, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002181/0.1937, allocations: 2.68 MB / 410.7 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009092/0.1947, allocations: 0.7576 MB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.1948, allocations: 11.94 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.1949, allocations: 39.67 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1951, allocations: 89.05 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.1953, allocations: 82.83 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.1956, allocations: 394 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1958, allocations: 114 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.196, allocations: 131.5 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.1961, allocations: 155.3 kB / 412.5 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.1962, allocations: 20 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.597e-05/0.1963, allocations: 26.06 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.062e-05/0.1963, allocations: 59.77 kB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.1964, allocations: 188.9 kB / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.1966, allocations: 308.1 kB / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1966, allocations: 0 / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1967, allocations: 0 / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1967, allocations: 4 kB / 413.1 MB, free: 22.66 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007478/0.1974, allocations: 0.5965 MB / 413.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.1975, allocations: 12.03 kB / 413.7 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1976, allocations: 52.45 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.1979, allocations: 273.3 kB / 414 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.877e-05/0.1979, allocations: 80.61 kB / 414.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.198, allocations: 36.31 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.1984, allocations: 338.9 kB / 414.4 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1984, allocations: 3.938 kB / 414.5 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.1985, allocations: 12 kB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1985, allocations: 8 kB / 414.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.1988, allocations: 222.5 kB / 414.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.2003, allocations: 1.387 MB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.2005, allocations: 166.5 kB / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.2007, allocations: 92.77 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.2007, allocations: 4 kB / 416.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.201, allocations: 165.2 kB / 416.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.201, allocations: 0 / 416.5 MB, free: 18.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009372/0.2019, allocations: 423.1 kB / 416.9 MB, free: 18.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.202, allocations: 110.8 kB / 417 MB, free: 18.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.2022, allocations: 262.7 kB / 417.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.2022, allocations: 29.7 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.2023, allocations: 207.8 kB / 417.5 MB, free: 17.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.2023, allocations: 67.09 kB / 417.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.358e-05/0.2023, allocations: 8 kB / 417.6 MB, free: 17.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.082e-05/0.2024, allocations: 334.8 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.2025, allocations: 76.62 kB / 418 MB, free: 17.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.2027, allocations: 181.5 kB / 418.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.203, allocations: 239.6 kB / 418.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.203, allocations: 0 / 418.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006081/0.2036, allocations: 356 kB / 418.7 MB, free: 16.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2036, allocations: 8 kB / 418.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2036, allocations: 352 / 418.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002447/0.2039, allocations: 64.75 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.2041, allocations: 63.91 kB / 418.9 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008614/0.205, allocations: 1.404 MB / 420.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.2052, allocations: 55.77 kB / 420.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.2053, allocations: 12 kB / 420.3 MB, free: 14.84 MB / 298.7 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 ($whenCondition1,switch1.off,$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 (38): * Single equations (assignments): 37 * 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.0001108/0.2054, allocations: 149.8 kB / 420.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.2054, allocations: 23.72 kB / 420.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.994e-05/0.2055, allocations: 30.17 kB / 420.5 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2055, allocations: 8 kB / 420.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2055, allocations: 3.938 kB / 420.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2055, allocations: 7.969 kB / 420.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.2057, allocations: 341.3 kB / 420.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2057, allocations: 0 / 420.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.2059, allocations: 43.91 kB / 420.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.2061, allocations: 56.81 kB / 421 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.2061, allocations: 4 kB / 421 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007085/0.2068, allocations: 1.331 MB / 422.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2068, allocations: 0 / 422.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005767/0.2074, allocations: 361.3 kB / 422.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.2075, allocations: 120.8 kB / 422.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.2076, allocations: 4 kB / 422.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.2078, allocations: 24.05 kB / 422.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.255e-05/0.2078, allocations: 31.94 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.2079, allocations: 8 kB / 422.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.208, allocations: 182 kB / 423 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.208, allocations: 0 / 423 MB, free: 11.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.2083, allocations: 87.75 kB / 423.1 MB, free: 11.82 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001042/0.2084, allocations: 103.2 kB / 423.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004863/0.2089, allocations: 318.4 kB / 423.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2089, allocations: 0 / 423.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.2092, allocations: 199.3 kB / 423.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.2095, allocations: 38.89 kB / 423.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.2106, allocations: 0.8632 MB / 424.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.2108, allocations: 0.7794 MB / 425.4 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.2109, allocations: 23.44 kB / 425.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2109, allocations: 0 / 425.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of Templates: time 0.004758/0.2156, allocations: 4.571 MB / 430 MB, free: 4.863 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches