Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.00159, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.274, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003869/0.2779, allocations: 2.135 MB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.279, allocations: 0.5377 MB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.2792, allocations: 4 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.2793, allocations: 23.78 kB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.2795, allocations: 39.58 kB / 403 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.2797, allocations: 47.89 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002915/0.28, allocations: 163.2 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.2802, allocations: 53.47 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.2804, allocations: 55.78 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.2805, allocations: 75.62 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.2806, allocations: 12 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.84e-05/0.2806, allocations: 16 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.2807, allocations: 35.91 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.603e-05/0.2808, allocations: 67.67 kB / 403.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.281, allocations: 161.1 kB / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.281, allocations: 0 / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.281, allocations: 0 / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2811, allocations: 0 / 403.6 MB, free: 5.391 MB / 318.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.0006639/0.2817, allocations: 439.2 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2818, allocations: 11.89 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.2818, allocations: 50.73 kB / 404.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.2819, allocations: 16.84 kB / 404.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.2823, allocations: 218.3 kB / 404.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2823, allocations: 8.609 kB / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.2823, allocations: 8.375 kB / 404.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.2826, allocations: 128.3 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2826, allocations: 0 / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.2826, allocations: 4 kB / 404.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2826, allocations: 4 kB / 404.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.2828, allocations: 84.64 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.2838, allocations: 0.5979 MB / 405.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.2841, allocations: 90.5 kB / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.357e-05/0.2842, allocations: 36.97 kB / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.2842, allocations: 4 kB / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.2842, allocations: 30.56 kB / 405.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.2843, allocations: 0 / 405.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007405/0.285, allocations: 259.3 kB / 405.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.2851, allocations: 55.41 kB / 405.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.2852, allocations: 152.3 kB / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2853, allocations: 25.7 kB / 405.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.593e-05/0.2854, allocations: 131.9 kB / 406 MB, free: 2.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.2854, allocations: 15.72 kB / 406 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.983e-05/0.2855, allocations: 29.7 kB / 406 MB, free: 2.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2856, allocations: 314.8 kB / 406.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.869e-05/0.2857, allocations: 19.98 kB / 406.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.229e-05/0.2858, allocations: 46.5 kB / 406.4 MB, free: 2.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.2859, allocations: 70.56 kB / 406.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2859, allocations: 0 / 406.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003075/0.2862, allocations: 138.2 kB / 406.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2863, allocations: 4 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2863, allocations: 4 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.2865, allocations: 40.89 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.922e-05/0.2866, allocations: 8 kB / 406.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.2882, allocations: 1.686 MB / 408.3 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.2883, allocations: 11.88 kB / 408.3 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.2883, allocations: 7.984 kB / 408.3 MB, free: 244 kB / 318.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.0001039/0.2884, allocations: 125.8 kB / 408.5 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.2885, allocations: 11.84 kB / 408.5 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.2885, allocations: 12.77 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2885, allocations: 3.984 kB / 408.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.2885, allocations: 0 / 408.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2885, allocations: 0 / 408.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002563/0.2888, allocations: 213.6 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2888, allocations: 3.938 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.999e-05/0.2888, allocations: 7.984 kB / 408.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.289, allocations: 36.84 kB / 408.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.289, allocations: 3.984 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.2905, allocations: 1.681 MB / 410.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2905, allocations: 192 / 410.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.2908, allocations: 216.2 kB / 410.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.2909, allocations: 93.02 kB / 410.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.2909, allocations: 0 / 410.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.291, allocations: 11.98 kB / 410.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.2911, allocations: 4 kB / 410.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.2911, allocations: 0 / 410.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.201e-05/0.2912, allocations: 115.2 kB / 410.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2912, allocations: 0 / 410.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.2916, allocations: 35.91 kB / 410.9 MB, free: 13.44 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.0006744/0.2923, allocations: 0.756 MB / 411.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004504/0.2927, allocations: 198.6 kB / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2928, allocations: 0 / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.293, allocations: 154.7 kB / 412 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.2933, allocations: 8 kB / 412 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.2953, allocations: 1.706 MB / 413.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.2957, allocations: 0.7157 MB / 414.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.089e-05/0.2957, allocations: 448 / 414.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.759e-05/0.2958, allocations: 35.42 kB / 414.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2958, allocations: 0 / 414.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.3204, allocations: 3.027 MB / 417.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.36, allocations: 4 kB / 417.5 MB, free: 6.773 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches