Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001474/0.001474, allocations: 122.8 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.001608/0.001608, allocations: 202 kB / 18.73 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.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.257, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005923/0.263, allocations: 3.021 MB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.265, allocations: 0.7478 MB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.2652, allocations: 4 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.2655, allocations: 63.42 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.2658, allocations: 103 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.2662, allocations: 99.8 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006108/0.2669, allocations: 410.2 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.2672, allocations: 107.1 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003377/0.2675, allocations: 159.4 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.2678, allocations: 163.2 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.908e-05/0.2679, allocations: 32 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.268, allocations: 43.98 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.856e-05/0.2681, allocations: 71.75 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002362/0.2684, allocations: 179.1 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.269, allocations: 385.4 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.269, allocations: 4 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.269, allocations: 0 / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.2691, allocations: 0 / 414.3 MB, free: 11.93 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001476/0.2705, allocations: 0.6466 MB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.2706, allocations: 12.03 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.2707, allocations: 70.59 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002417/0.271, allocations: 52.69 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/0.2716, allocations: 279.8 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.2716, allocations: 20.94 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.2717, allocations: 24.38 kB / 415.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007585/0.2724, allocations: 268.9 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2725, allocations: 7.984 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.2725, allocations: 12 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2726, allocations: 8 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007344/0.2733, allocations: 214.1 kB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.2757, allocations: 0.9719 MB / 416.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/0.2765, allocations: 291.8 kB / 417.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.2769, allocations: 112.8 kB / 417.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.2769, allocations: 3.938 kB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.277, allocations: 38.56 kB / 417.3 MB, free: 8.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.504e-06/0.277, allocations: 0 / 417.3 MB, free: 8.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002098/0.2791, allocations: 0.5551 MB / 417.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.2792, allocations: 55.41 kB / 417.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004558/0.2796, allocations: 262.6 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/0.2797, allocations: 33.7 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.2799, allocations: 180.2 kB / 418.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.28, allocations: 83.31 kB / 418.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.2802, allocations: 45.89 kB / 418.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002281/0.2805, allocations: 346.8 kB / 418.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.2808, allocations: 76.42 kB / 418.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.2812, allocations: 103.5 kB / 419 MB, free: 6.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007186/0.282, allocations: 190.5 kB / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.282, allocations: 0 / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00115/0.2832, allocations: 326.8 kB / 419.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.2832, allocations: 4 kB / 419.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.2832, allocations: 0 / 419.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004572/0.2837, allocations: 77.66 kB / 419.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.284, allocations: 35.98 kB / 419.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004438/0.2885, allocations: 3.051 MB / 422.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.2889, allocations: 27.84 kB / 422.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.2889, allocations: 11.94 kB / 422.8 MB, free: 2.879 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.0002928/0.2893, allocations: 145.7 kB / 422.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.2894, allocations: 27.81 kB / 422.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.836e-05/0.2895, allocations: 34.3 kB / 423 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2895, allocations: 4.062 kB / 423 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.2895, allocations: 8 kB / 423 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2895, allocations: 0 / 423 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.2913, allocations: 0.6835 MB / 423.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2914, allocations: 0 / 423.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.2916, allocations: 27.97 kB / 423.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003813/0.292, allocations: 73.67 kB / 423.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.292, allocations: 0 / 423.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004166/0.2962, allocations: 3.052 MB / 426.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2963, allocations: 0 / 426.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.2974, allocations: 386.1 kB / 427.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.2976, allocations: 101 kB / 427.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.2976, allocations: 7.984 kB / 427.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004567/0.2981, allocations: 27.98 kB / 427.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.2982, allocations: 19.97 kB / 427.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.2983, allocations: 12 kB / 427.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003319/0.2986, allocations: 190 kB / 427.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2986, allocations: 0 / 427.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007141/0.2994, allocations: 95.83 kB / 427.6 MB, free: 13.6 MB / 350.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.001523/0.3009, allocations: 0.9206 MB / 428.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.3022, allocations: 441.3 kB / 429 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3022, allocations: 4.125 kB / 429 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007601/0.303, allocations: 357.1 kB / 429.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.3037, allocations: 52.7 kB / 429.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006011/0.3097, allocations: 2.728 MB / 432.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.3103, allocations: 0.76 MB / 432.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.3105, allocations: 26.27 kB / 432.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.3107, allocations: 91.41 kB / 433 MB, free: 8.027 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3107, allocations: 4 kB / 433 MB, free: 8.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04796/0.3587, allocations: 6.44 MB / 439.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.41, allocations: 0 / 439.4 MB, free: 1.746 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches