Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001834/0.001834, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2787, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003257/0.282, allocations: 2.153 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.283, allocations: 0.6156 MB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.2832, allocations: 4 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.2833, allocations: 23.78 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.2835, allocations: 43.58 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.2837, allocations: 51.88 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.2839, allocations: 167.2 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2841, allocations: 53.45 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.2843, allocations: 63.78 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.2844, allocations: 71.69 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.2844, allocations: 12 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.255e-05/0.2845, allocations: 28 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.2846, allocations: 27.86 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.378e-05/0.2846, allocations: 71.66 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.2849, allocations: 170.3 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2849, allocations: 0 / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2849, allocations: 0 / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.2849, allocations: 0 / 412.3 MB, free: 13.96 MB / 334.1 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.0005984/0.2855, allocations: 447 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2856, allocations: 12.03 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.788e-05/0.2857, allocations: 46.73 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.2859, allocations: 32.77 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.2862, allocations: 207.3 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2862, allocations: 12.61 kB / 413 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.2862, allocations: 12.31 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2865, allocations: 127.6 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2865, allocations: 0 / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2865, allocations: 4 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2865, allocations: 8 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2867, allocations: 80.66 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008176/0.2875, allocations: 0.5979 MB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.2878, allocations: 86.62 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.357e-05/0.2879, allocations: 32.98 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.2879, allocations: 3.984 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.288, allocations: 30.56 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.288, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006865/0.2887, allocations: 259.4 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.2887, allocations: 51.41 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.2888, allocations: 160.8 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.2889, allocations: 29.64 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.149e-05/0.2889, allocations: 128.2 kB / 414.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.289, allocations: 23.83 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.289, allocations: 21.67 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.864e-05/0.2891, allocations: 322.8 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.179e-05/0.2892, allocations: 27.92 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.131e-05/0.2893, allocations: 42.56 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.2894, allocations: 66.5 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2894, allocations: 4 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003465/0.2898, allocations: 134.3 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2898, allocations: 4 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.2898, allocations: 4.062 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.29, allocations: 40.83 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-05/0.2901, allocations: 7.984 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.2917, allocations: 1.69 MB / 417 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.734e-05/0.2918, allocations: 7.953 kB / 417 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.2918, allocations: 4.062 kB / 417 MB, free: 8.793 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.2919, allocations: 129.7 kB / 417.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.292, allocations: 7.953 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.292, allocations: 24.73 kB / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.292, allocations: 0 / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.292, allocations: 0 / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.292, allocations: 0 / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.2923, allocations: 213.5 kB / 417.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2923, allocations: 0 / 417.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.2923, allocations: 4 kB / 417.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001341/0.2924, allocations: 40.83 kB / 417.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.2925, allocations: 0 / 417.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.2938, allocations: 1.682 MB / 419.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2938, allocations: 3.984 kB / 419.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.2941, allocations: 216.3 kB / 419.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.2942, allocations: 93.05 kB / 419.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.2942, allocations: 0 / 419.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.2943, allocations: 4 kB / 419.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.2944, allocations: 7.984 kB / 419.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.2944, allocations: 0 / 419.4 MB, free: 6.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.091e-05/0.2945, allocations: 122.5 kB / 419.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2945, allocations: 3.938 kB / 419.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000363/0.2948, allocations: 47.89 kB / 419.6 MB, free: 5.98 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005449/0.2954, allocations: 0.7439 MB / 420.3 MB, free: 5.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003912/0.2958, allocations: 198.8 kB / 420.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2958, allocations: 0 / 420.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.296, allocations: 150.7 kB / 420.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.2963, allocations: 11.98 kB / 420.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.2982, allocations: 1.728 MB / 422.4 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.2985, allocations: 0.7041 MB / 423.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.602e-05/0.2986, allocations: 12.45 kB / 423.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.817e-05/0.2986, allocations: 39.36 kB / 423.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of SimCode: time 5.92e-07/0.2986, allocations: 4 kB / 423.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.3233, allocations: 3.047 MB / 426.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.36, allocations: 4.016 kB / 426.2 MB, free: 15.27 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches