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.001193/0.001193, allocations: 122.1 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.001343/0.001343, allocations: 202 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.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2348, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004381/0.2392, allocations: 3.033 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2406, allocations: 0.7401 MB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.2408, allocations: 4 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.241, allocations: 55.44 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002064/0.2413, allocations: 107 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.2416, allocations: 103.8 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004315/0.242, allocations: 410.2 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2422, allocations: 107.1 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.2425, allocations: 163.4 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.2427, allocations: 167.2 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.879e-05/0.2428, allocations: 32 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.108e-05/0.2428, allocations: 40 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.153e-05/0.2429, allocations: 75.75 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.2431, allocations: 175.1 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.2435, allocations: 393.4 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2435, allocations: 0 / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2435, allocations: 0 / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.2435, allocations: 0 / 414.3 MB, free: 11.94 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.000992/0.2445, allocations: 0.6428 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.2446, allocations: 8.031 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.424e-05/0.2446, allocations: 78.53 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.2448, allocations: 48.7 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.2452, allocations: 283.8 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.2453, allocations: 16.94 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.2453, allocations: 28.38 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004954/0.2458, allocations: 260.9 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.2459, allocations: 4 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.2459, allocations: 8 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/0.2459, allocations: 12 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.2464, allocations: 214.1 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.248, allocations: 0.9758 MB / 416.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.2485, allocations: 295.4 kB / 417.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.2487, allocations: 117.9 kB / 417.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.2488, allocations: 8 kB / 417.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.2488, allocations: 30.56 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.2488, allocations: 0 / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001185/0.25, allocations: 0.5632 MB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.25, allocations: 51.41 kB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.2503, allocations: 266.6 kB / 418.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.2503, allocations: 25.7 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.2504, allocations: 184.2 kB / 418.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.364e-05/0.2505, allocations: 75.31 kB / 418.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2506, allocations: 53.84 kB / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.2507, allocations: 334.8 kB / 418.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.2509, allocations: 80.42 kB / 418.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.2511, allocations: 111.4 kB / 419 MB, free: 6.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.2515, allocations: 186.5 kB / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2515, allocations: 0 / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006138/0.2521, allocations: 330.8 kB / 419.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2522, allocations: 8 kB / 419.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2522, allocations: 0 / 419.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.2525, allocations: 69.67 kB / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.2527, allocations: 35.97 kB / 419.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.255, allocations: 3.055 MB / 422.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.2552, allocations: 35.88 kB / 422.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.2552, allocations: 7.938 kB / 422.8 MB, free: 2.887 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.0001473/0.2554, allocations: 141.7 kB / 422.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.119e-05/0.2554, allocations: 31.81 kB / 422.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.863e-05/0.2555, allocations: 30.17 kB / 423 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2555, allocations: 4 kB / 423 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2555, allocations: 7.938 kB / 423 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2555, allocations: 0 / 423 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009465/0.2565, allocations: 0.6835 MB / 423.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2565, allocations: 0 / 423.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.2566, allocations: 28.17 kB / 423.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.2568, allocations: 73.66 kB / 423.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2568, allocations: 8 kB / 423.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002178/0.259, allocations: 3.037 MB / 426.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.259, allocations: 0 / 426.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000619/0.2596, allocations: 397 kB / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.902e-05/0.2597, allocations: 96.97 kB / 427.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.2598, allocations: 4 kB / 427.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.26, allocations: 39.95 kB / 427.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.2601, allocations: 19.97 kB / 427.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.2601, allocations: 4 kB / 427.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.2603, allocations: 186 kB / 427.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2603, allocations: 0 / 427.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003978/0.2608, allocations: 99.83 kB / 427.6 MB, free: 13.61 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.0009132/0.2617, allocations: 0.9206 MB / 428.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007838/0.2625, allocations: 449.3 kB / 429 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2625, allocations: 0 / 429 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004318/0.2629, allocations: 353.2 kB / 429.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.2633, allocations: 52.64 kB / 429.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.2668, allocations: 2.721 MB / 432.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.2672, allocations: 0.7678 MB / 432.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.2673, allocations: 18.3 kB / 432.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.2675, allocations: 95.39 kB / 433 MB, free: 8.039 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2675, allocations: 0 / 433 MB, free: 8.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04624/0.3137, allocations: 6.434 MB / 439.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.637/9.951, allocations: 11.81 kB / 439.4 MB, free: 1.758 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.0.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