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.001232/0.001232, allocations: 105 kB / 17.06 MB, free: 6.109 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.001261/0.001261, allocations: 194.9 kB / 18 MB, free: 5.188 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2788, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004701/0.2836, allocations: 3.001 MB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.285, allocations: 0.6777 MB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.2853, allocations: 4 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.2856, allocations: 55.44 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.2859, allocations: 107 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.2862, allocations: 95.81 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.2868, allocations: 406.2 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.287, allocations: 111.1 kB / 404.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.2874, allocations: 155.4 kB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.2876, allocations: 163.2 kB / 405 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.571e-05/0.2877, allocations: 32 kB / 405 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.018e-05/0.2878, allocations: 32 kB / 405.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.582e-05/0.2879, allocations: 75.73 kB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.2881, allocations: 171.2 kB / 405.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004893/0.2886, allocations: 388.3 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.429e-05/0.2886, allocations: 4 kB / 405.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2886, allocations: 0 / 405.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.2886, allocations: 0 / 405.7 MB, free: 3.355 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.00142/0.2901, allocations: 0.6237 MB / 406.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.2901, allocations: 19.88 kB / 406.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.2903, allocations: 62.73 kB / 406.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.2904, allocations: 40.47 kB / 406.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.291, allocations: 271.6 kB / 406.7 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.291, allocations: 20.94 kB / 406.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.2911, allocations: 28.38 kB / 406.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.2917, allocations: 268.9 kB / 407 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2917, allocations: 0 / 407 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.2918, allocations: 12 kB / 407 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2918, allocations: 4 kB / 407 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.2923, allocations: 214.1 kB / 407.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.2941, allocations: 0.9755 MB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.2947, allocations: 297.8 kB / 408.5 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.295, allocations: 104.8 kB / 408.6 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.295, allocations: 4 kB / 408.6 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.236e-05/0.2951, allocations: 38.5 kB / 408.6 MB, free: 196 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.554e-06/0.2952, allocations: 0 / 408.6 MB, free: 196 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001524/0.2967, allocations: 0.5574 MB / 409.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.2968, allocations: 51.41 kB / 409.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.2971, allocations: 266.6 kB / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.174e-05/0.2972, allocations: 33.7 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.2974, allocations: 179.9 kB / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.514e-05/0.2974, allocations: 70.98 kB / 409.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.2975, allocations: 45.94 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.2977, allocations: 330.8 kB / 410.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.2979, allocations: 76.38 kB / 410.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.2982, allocations: 120.1 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/0.2986, allocations: 186.4 kB / 410.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2986, allocations: 0 / 410.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007486/0.2994, allocations: 334.6 kB / 410.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.2994, allocations: 10.44 kB / 410.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2994, allocations: 4 kB / 410.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003091/0.2997, allocations: 81.72 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.2999, allocations: 35.98 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.3027, allocations: 3.044 MB / 414 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.303, allocations: 27.86 kB / 414.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.303, allocations: 4 kB / 414.1 MB, free: 10.36 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.0002078/0.3032, allocations: 145.8 kB / 414.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.3033, allocations: 27.72 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.894e-05/0.3034, allocations: 30.17 kB / 414.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3034, allocations: 4 kB / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3034, allocations: 0 / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3034, allocations: 0 / 414.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.3047, allocations: 0.6935 MB / 415 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3047, allocations: 0 / 415 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.3049, allocations: 19.98 kB / 415 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002259/0.3051, allocations: 77.66 kB / 415 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.3051, allocations: 4 kB / 415.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00286/0.308, allocations: 3.048 MB / 418.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.308, allocations: 0 / 418.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006421/0.3087, allocations: 392.1 kB / 418.5 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.061e-05/0.3088, allocations: 96.77 kB / 418.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.3088, allocations: 8 kB / 418.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.3091, allocations: 27.97 kB / 418.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.3092, allocations: 23.97 kB / 418.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.3092, allocations: 8 kB / 418.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.3094, allocations: 186 kB / 418.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3094, allocations: 0 / 418.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003765/0.3097, allocations: 95.77 kB / 418.9 MB, free: 5.09 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.0009255/0.3107, allocations: 0.9205 MB / 419.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008422/0.3115, allocations: 449.1 kB / 420.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3116, allocations: 0 / 420.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.312, allocations: 348.4 kB / 420.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.3124, allocations: 56.59 kB / 420.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/0.3159, allocations: 2.695 MB / 423.4 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.3162, allocations: 0.7639 MB / 424.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.3163, allocations: 26.28 kB / 424.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3165, allocations: 91.41 kB / 424.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3165, allocations: 0 / 424.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.3481, allocations: 6.406 MB / 430.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.617/9.965, allocations: 64 / 430.7 MB, free: 9.293 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