Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.001633/0.001633, allocations: 107.9 kB / 17.06 MB, free: 6.016 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.001691/0.001692, allocations: 191 kB / 18 MB, free: 5.102 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.271, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004219/0.2753, allocations: 3.003 MB / 403.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2764, allocations: 0.6738 MB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.2766, allocations: 8 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.2768, allocations: 51.44 kB / 404 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.2769, allocations: 107 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.2773, allocations: 91.86 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.2777, allocations: 410.2 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.2779, allocations: 115.1 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.2781, allocations: 155.4 kB / 404.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.2783, allocations: 163.2 kB / 405 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.715e-05/0.2783, allocations: 32 kB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.643e-05/0.2784, allocations: 32 kB / 405.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.715e-05/0.2785, allocations: 71.75 kB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.2786, allocations: 179.1 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003709/0.279, allocations: 393.3 kB / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.279, allocations: 0 / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.279, allocations: 0 / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.279, allocations: 0 / 405.7 MB, free: 3.32 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001003/0.28, allocations: 0.6389 MB / 406.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2801, allocations: 15.89 kB / 406.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.648e-05/0.2802, allocations: 66.67 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.2802, allocations: 40.7 kB / 406.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.2806, allocations: 279.8 kB / 406.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.2806, allocations: 20.94 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.2807, allocations: 24.38 kB / 406.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.2812, allocations: 264.9 kB / 407 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2812, allocations: 0 / 407 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2812, allocations: 16 kB / 407 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.2812, allocations: 4 kB / 407 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.2817, allocations: 218.1 kB / 407.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.2833, allocations: 0.9642 MB / 408.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/0.2838, allocations: 299.8 kB / 408.5 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.2841, allocations: 111.6 kB / 408.6 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.2841, allocations: 7.938 kB / 408.6 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.2842, allocations: 30.56 kB / 408.7 MB, free: 144 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.2842, allocations: 4 kB / 408.7 MB, free: 140 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001261/0.2854, allocations: 0.5614 MB / 409.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.2855, allocations: 55.41 kB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.2857, allocations: 258.6 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.2857, allocations: 29.7 kB / 409.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2859, allocations: 184.2 kB / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.707e-05/0.2859, allocations: 75.38 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.286, allocations: 45.94 kB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.2861, allocations: 334.8 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.2863, allocations: 80.36 kB / 410.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.2866, allocations: 104.2 kB / 410.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.287, allocations: 190.5 kB / 410.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.287, allocations: 3.938 kB / 410.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006337/0.2876, allocations: 326.8 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2876, allocations: 8 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2877, allocations: 0 / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.2879, allocations: 77.66 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.2881, allocations: 35.98 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.2905, allocations: 3.059 MB / 414.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.2907, allocations: 31.86 kB / 414.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.2907, allocations: 4 kB / 414.1 MB, free: 10.3 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.2909, allocations: 148 kB / 414.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.2909, allocations: 27.86 kB / 414.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.761e-05/0.291, allocations: 30.16 kB / 414.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.2911, allocations: 8.062 kB / 414.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.2911, allocations: 0 / 414.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.2911, allocations: 0 / 414.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009554/0.2921, allocations: 0.6874 MB / 415 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2921, allocations: 4 kB / 415 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.2922, allocations: 23.97 kB / 415 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.2924, allocations: 73.67 kB / 415.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2924, allocations: 0 / 415.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.2946, allocations: 3.044 MB / 418.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2946, allocations: 7.984 kB / 418.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.2952, allocations: 388.6 kB / 418.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/0.2953, allocations: 100.9 kB / 418.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.2953, allocations: 7.984 kB / 418.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.2956, allocations: 31.98 kB / 418.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.2957, allocations: 19.97 kB / 418.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.2957, allocations: 8 kB / 418.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001627/0.2959, allocations: 190 kB / 418.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2959, allocations: 0 / 418.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.2962, allocations: 91.83 kB / 419 MB, free: 5.023 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00087/0.2971, allocations: 0.9245 MB / 419.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008291/0.298, allocations: 445 kB / 420.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.298, allocations: 128 / 420.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004053/0.2984, allocations: 356 kB / 420.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.2988, allocations: 48.45 kB / 420.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.3023, allocations: 2.706 MB / 423.4 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.3027, allocations: 0.768 MB / 424.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.3028, allocations: 18.3 kB / 424.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.303, allocations: 87.41 kB / 424.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.303, allocations: 0 / 424.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3304, allocations: 6.42 MB / 430.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.568/9.899, allocations: 2.344 kB / 430.7 MB, free: 9.211 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches