Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001013, allocations: 191.9 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.189/1.189, allocations: 226.5 MB / 244.7 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.0007334/0.0007334, allocations: 87.77 kB / 296.7 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001962/0.0001962, allocations: 4 kB / 356.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1835, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002818/0.1864, allocations: 2.571 MB / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1875, allocations: 0.7004 MB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.1876, allocations: 8 kB / 411.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1878, allocations: 36.31 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.188, allocations: 92.98 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.1883, allocations: 63.48 kB / 411.6 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003789/0.1887, allocations: 382.2 kB / 412 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.1889, allocations: 97 kB / 412.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.1891, allocations: 135.5 kB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1893, allocations: 147.3 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.534e-05/0.1893, allocations: 16 kB / 412.4 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.652e-05/0.1894, allocations: 20 kB / 412.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.1895, allocations: 55.77 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.1897, allocations: 181 kB / 412.6 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.1899, allocations: 284.4 kB / 412.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1899, allocations: 0 / 412.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.19, allocations: 0 / 412.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.19, allocations: 0 / 412.9 MB, free: 22.95 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.000957/0.1909, allocations: 0.5847 MB / 413.5 MB, free: 22.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.191, allocations: 8.031 kB / 413.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.067e-05/0.1911, allocations: 62.72 kB / 413.5 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.1913, allocations: 52.55 kB / 413.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.1916, allocations: 279.5 kB / 413.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.1916, allocations: 20.94 kB / 413.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.1917, allocations: 24.38 kB / 413.9 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006858/0.1924, allocations: 269 kB / 414.2 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1924, allocations: 4 kB / 414.2 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1925, allocations: 12 kB / 414.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1925, allocations: 4 kB / 414.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000708/0.1932, allocations: 230.1 kB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.195, allocations: 0.987 MB / 415.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.1956, allocations: 314 kB / 415.7 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.1959, allocations: 120.2 kB / 415.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1959, allocations: 3.984 kB / 415.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.196, allocations: 38.56 kB / 415.9 MB, free: 19.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.196, allocations: 0 / 415.9 MB, free: 19.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001524/0.1975, allocations: 0.5871 MB / 416.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.99e-05/0.1976, allocations: 51.41 kB / 416.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.1978, allocations: 266.6 kB / 416.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1979, allocations: 25.7 kB / 416.8 MB, free: 18.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.129e-05/0.198, allocations: 187.8 kB / 417 MB, free: 18.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.998e-05/0.198, allocations: 75 kB / 417 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.599e-05/0.1981, allocations: 7.938 kB / 417.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.314e-05/0.1981, allocations: 330.8 kB / 417.4 MB, free: 18.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1984, allocations: 88.42 kB / 417.5 MB, free: 18.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.1987, allocations: 107.5 kB / 417.6 MB, free: 17.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005548/0.1993, allocations: 198.5 kB / 417.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1993, allocations: 0 / 417.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009055/0.2002, allocations: 334.7 kB / 418.1 MB, free: 17.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.2003, allocations: 8.062 kB / 418.1 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2003, allocations: 3.984 kB / 418.1 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/0.2006, allocations: 73.67 kB / 418.2 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002771/0.2009, allocations: 39.92 kB / 418.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.2029, allocations: 2.835 MB / 421 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.2032, allocations: 31.86 kB / 421.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.2033, allocations: 16.06 kB / 421.1 MB, free: 14.13 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.2034, allocations: 137.8 kB / 421.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.2035, allocations: 27.7 kB / 421.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.506e-05/0.2036, allocations: 30.19 kB / 421.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2036, allocations: 4 kB / 421.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.2036, allocations: 3.938 kB / 421.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2036, allocations: 3.984 kB / 421.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.2048, allocations: 0.6949 MB / 422 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2048, allocations: 0 / 422 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.205, allocations: 31.97 kB / 422 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002507/0.2053, allocations: 73.61 kB / 422.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2053, allocations: 8 kB / 422.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.2073, allocations: 2.824 MB / 424.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2073, allocations: 0 / 424.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007823/0.2081, allocations: 407.5 kB / 425.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.2082, allocations: 104.8 kB / 425.4 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.2082, allocations: 4 kB / 425.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.2086, allocations: 43.97 kB / 425.5 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.2087, allocations: 23.91 kB / 425.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.2087, allocations: 4 kB / 425.5 MB, free: 9.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001774/0.2089, allocations: 182 kB / 425.7 MB, free: 9.168 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2089, allocations: 0 / 425.7 MB, free: 9.168 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005461/0.2095, allocations: 91.84 kB / 425.8 MB, free: 9.078 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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009214/0.2104, allocations: 0.9361 MB / 426.7 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008206/0.2113, allocations: 459.6 kB / 427.1 MB, free: 7.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2113, allocations: 7.938 kB / 427.2 MB, free: 7.629 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004655/0.2117, allocations: 361.3 kB / 427.5 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005937/0.2124, allocations: 44.55 kB / 427.6 MB, free: 7.203 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.2151, allocations: 1.585 MB / 429.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.2153, allocations: 0.7678 MB / 429.9 MB, free: 4.754 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.2155, allocations: 87.41 kB / 430 MB, free: 4.672 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2155, allocations: 0 / 430 MB, free: 4.672 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.185/3.401, allocations: 6.333 MB / 436.3 MB, free: 14.33 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches