Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009924/0.0009925, allocations: 194.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008157/0.0008158, allocations: 99.31 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002498, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1962, allocations: 51.31 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.001728/0.1979, allocations: 1.797 MB / 409.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006736/0.1986, allocations: 0.557 MB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.834e-05/0.1987, allocations: 0 / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.659e-05/0.1988, allocations: 19.91 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.025e-05/0.1989, allocations: 36.89 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.1991, allocations: 30.72 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.1992, allocations: 151.2 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1994, allocations: 45.45 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1995, allocations: 59.78 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.022e-05/0.1996, allocations: 56.64 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.87e-05/0.1996, allocations: 7.938 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.1997, allocations: 21.14 kB / 410.8 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.962e-05/0.1997, allocations: 19.92 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.473e-05/0.1998, allocations: 85.44 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.1999, allocations: 121.3 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1999, allocations: 0 / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1999, allocations: 0.75 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1999, allocations: 3.938 kB / 411 MB, free: 24.65 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003992/0.2003, allocations: 421.5 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.2004, allocations: 12.03 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.2006, allocations: 29.7 kB / 411.5 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.2007, allocations: 212 kB / 411.7 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2007, allocations: 9.266 kB / 411.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.2008, allocations: 16.38 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.201, allocations: 123.8 kB / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.201, allocations: 0 / 411.9 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.201, allocations: 4 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.201, allocations: 4 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.2012, allocations: 80.66 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006231/0.2018, allocations: 0.6018 MB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.2021, allocations: 94.56 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.927e-05/0.2021, allocations: 32.97 kB / 412.7 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.2022, allocations: 4 kB / 412.7 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.222e-05/0.2022, allocations: 30.56 kB / 412.7 MB, free: 22.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.2022, allocations: 0 / 412.7 MB, free: 22.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005885/0.2028, allocations: 263.4 kB / 413 MB, free: 22.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.199e-05/0.2028, allocations: 59.34 kB / 413 MB, free: 22.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.269e-05/0.2029, allocations: 144 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.2029, allocations: 29.7 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.203, allocations: 120 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.203, allocations: 23.64 kB / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.203, allocations: 4 kB / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.756e-05/0.2031, allocations: 322.8 kB / 413.6 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.806e-05/0.2031, allocations: 23.98 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.017e-05/0.2032, allocations: 46.5 kB / 413.7 MB, free: 21.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.2033, allocations: 74.56 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2033, allocations: 3.984 kB / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002403/0.2036, allocations: 138.2 kB / 413.9 MB, free: 21.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.2036, allocations: 4 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2036, allocations: 3.984 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.2038, allocations: 44.89 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.74e-05/0.2038, allocations: 8 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.2049, allocations: 1.521 MB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.097e-05/0.205, allocations: 15.92 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.205, allocations: 0 / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 7.165e-05/0.2051, allocations: 129.8 kB / 415.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.2051, allocations: 7.906 kB / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.904e-05/0.2051, allocations: 8.719 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2051, allocations: 7.938 kB / 415.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-06/0.2051, allocations: 0 / 415.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2051, allocations: 0 / 415.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.2053, allocations: 209.6 kB / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2053, allocations: 3.984 kB / 415.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.57e-05/0.2054, allocations: 4 kB / 415.9 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.2055, allocations: 32.84 kB / 415.9 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2055, allocations: 11.98 kB / 415.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008207/0.2063, allocations: 1.506 MB / 417.4 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2063, allocations: 0 / 417.4 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.2066, allocations: 220.2 kB / 417.7 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.539e-05/0.2066, allocations: 93.08 kB / 417.7 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.2066, allocations: 3.938 kB / 417.7 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.73e-05/0.2067, allocations: 8 kB / 417.8 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.2068, allocations: 3.984 kB / 417.8 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.2068, allocations: 4 kB / 417.8 MB, free: 17.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.046e-05/0.2069, allocations: 114.5 kB / 417.9 MB, free: 17.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2069, allocations: 0 / 417.9 MB, free: 17.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.2072, allocations: 39.94 kB / 417.9 MB, free: 17.13 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 9.829e-05/0.2073, allocations: 99.25 kB / 418 MB, free: 17.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2077, allocations: 190.5 kB / 418.2 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2077, allocations: 0 / 418.2 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.2079, allocations: 162.8 kB / 418.4 MB, free: 16.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2081, allocations: 8 kB / 418.4 MB, free: 16.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000463/0.2086, allocations: 380.2 kB / 418.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.2088, allocations: 0.7118 MB / 419.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.2088, allocations: 11.44 kB / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2088, allocations: 0 / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of Templates: time 0.002928/0.2118, allocations: 1.872 MB / 421.3 MB, free: 13.62 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches