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.0013/0.0013, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 67.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2765, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003932/0.2805, allocations: 2.157 MB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.2821, allocations: 0.6117 MB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.2822, allocations: 3.938 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.2824, allocations: 27.78 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.2826, allocations: 39.62 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.2829, allocations: 51.88 kB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.2832, allocations: 167.2 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.2835, allocations: 57.44 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.2837, allocations: 67.72 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2839, allocations: 67.64 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.436e-05/0.2839, allocations: 12 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.2841, allocations: 28 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.2841, allocations: 31.84 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2842, allocations: 79.66 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.2846, allocations: 162.2 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2846, allocations: 0 / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2846, allocations: 0 / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.2846, 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.0008301/0.2855, allocations: 447 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2855, allocations: 8.031 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.73e-05/0.2856, allocations: 42.75 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.2858, allocations: 32.83 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.2861, allocations: 216.1 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.2862, allocations: 8.609 kB / 413 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.2862, allocations: 8.375 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.2866, allocations: 127.6 kB / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.2866, allocations: 0 / 413.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.2866, allocations: 4 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2866, allocations: 4 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002828/0.2869, allocations: 80.67 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.2881, allocations: 0.5941 MB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.2884, allocations: 86.56 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.084e-05/0.2885, allocations: 36.97 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.2885, allocations: 0 / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.2886, allocations: 30.56 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.2886, allocations: 0 / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006883/0.2893, allocations: 259.4 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.2893, allocations: 51.41 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.2895, allocations: 161 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.2895, allocations: 29.64 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.321e-05/0.2896, allocations: 128.1 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.2896, allocations: 23.83 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.2897, allocations: 25.67 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.2898, allocations: 322.8 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.2899, allocations: 23.98 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.148e-05/0.29, allocations: 50.44 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.2901, allocations: 66.56 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2901, allocations: 0 / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002854/0.2904, allocations: 142.2 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2905, allocations: 4 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2905, allocations: 0 / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000247/0.2907, allocations: 45.16 kB / 415.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.485e-05/0.2908, allocations: 11.98 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.2931, allocations: 1.681 MB / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2933, allocations: 11.95 kB / 417 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.2933, allocations: 4 kB / 417 MB, free: 8.801 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.0001509/0.2935, allocations: 133.8 kB / 417.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.711e-05/0.2935, allocations: 7.953 kB / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.2935, allocations: 12.72 kB / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2936, allocations: 0 / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.2936, allocations: 0 / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2936, allocations: 0 / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003705/0.2939, allocations: 221.5 kB / 417.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.294, allocations: 0 / 417.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.347e-05/0.294, allocations: 7.984 kB / 417.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.2942, allocations: 36.97 kB / 417.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.2943, allocations: 4 kB / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.2963, allocations: 1.681 MB / 419.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2964, allocations: 0 / 419.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004788/0.2969, allocations: 216.2 kB / 419.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.527e-05/0.2969, allocations: 89.12 kB / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.297, allocations: 0 / 419.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.2971, allocations: 4 kB / 419.4 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.2972, allocations: 11.98 kB / 419.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.2972, allocations: 192 / 419.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001275/0.2974, allocations: 119.1 kB / 419.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2974, allocations: 0 / 419.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006271/0.298, allocations: 43.89 kB / 419.6 MB, free: 5.996 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.000861/0.2989, allocations: 0.7524 MB / 420.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000566/0.2995, allocations: 194.7 kB / 420.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2995, allocations: 3.938 kB / 420.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.2998, allocations: 154.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.0004362/0.3003, allocations: 8 kB / 420.7 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.3032, allocations: 1.725 MB / 422.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.3036, allocations: 0.7119 MB / 423.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.364e-05/0.3037, allocations: 448 / 423.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.3038, allocations: 31.42 kB / 423.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3038, allocations: 0 / 423.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0359/0.3397, allocations: 3.06 MB / 426.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.8, allocations: 11.48 kB / 426.2 MB, free: 15.28 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.1.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