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.001071/0.001071, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 204.6 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.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2521, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003962/0.2561, allocations: 3.029 MB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.2575, allocations: 0.7401 MB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002831/0.2578, allocations: 8 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.2581, allocations: 59.42 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.2583, allocations: 107 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.2587, allocations: 99.8 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000506/0.2593, allocations: 410.2 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.2595, allocations: 115 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.2599, allocations: 163.4 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.2601, allocations: 163.2 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-05/0.2602, allocations: 32 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.2603, allocations: 43.98 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.391e-05/0.2603, allocations: 67.77 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.2605, allocations: 179.1 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004413/0.261, allocations: 389.4 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.261, allocations: 4 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.261, allocations: 0 / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.261, allocations: 4 kB / 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.0009935/0.262, allocations: 0.6389 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2621, allocations: 12.03 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.849e-05/0.2621, allocations: 70.59 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.2623, allocations: 52.69 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.2627, allocations: 275.8 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.2628, allocations: 20.94 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.2628, allocations: 24.38 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.2633, allocations: 272.9 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2633, allocations: 0 / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.2634, allocations: 12 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.2634, allocations: 4 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.2639, allocations: 214.1 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.2656, allocations: 0.9758 MB / 416.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005193/0.2661, allocations: 299.3 kB / 417.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.2663, allocations: 112.7 kB / 417.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.2664, allocations: 4 kB / 417.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.2664, allocations: 34.56 kB / 417.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.2664, allocations: 4 kB / 417.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00129/0.2677, allocations: 0.5554 MB / 417.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.2678, allocations: 55.41 kB / 417.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.268, allocations: 262.6 kB / 418.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.2681, allocations: 33.7 kB / 418.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.2682, allocations: 180.2 kB / 418.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.009e-05/0.2682, allocations: 79.31 kB / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.204e-05/0.2683, allocations: 49.83 kB / 418.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2685, allocations: 342.8 kB / 418.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.2687, allocations: 76.42 kB / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.2689, allocations: 107.5 kB / 419 MB, free: 6.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/0.2692, allocations: 186.5 kB / 419.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.2693, allocations: 3.938 kB / 419.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006362/0.2699, allocations: 326.8 kB / 419.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2699, allocations: 4 kB / 419.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2699, allocations: 0 / 419.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002708/0.2702, allocations: 81.72 kB / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.2704, allocations: 31.98 kB / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.2727, allocations: 3.051 MB / 422.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.2729, allocations: 27.84 kB / 422.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.2729, allocations: 11.94 kB / 422.8 MB, free: 2.898 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.0001406/0.273, allocations: 153.7 kB / 422.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.2731, allocations: 27.81 kB / 422.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.2732, allocations: 30.17 kB / 423 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-06/0.2732, allocations: 192 / 423 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.2732, allocations: 8 kB / 423 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2732, allocations: 0 / 423 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.2742, allocations: 0.6835 MB / 423.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2742, allocations: 0 / 423.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.2744, allocations: 27.97 kB / 423.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001907/0.2746, allocations: 73.67 kB / 423.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.2746, allocations: 8 kB / 423.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.2769, allocations: 3.048 MB / 426.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2769, allocations: 0 / 426.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000635/0.2776, allocations: 388.6 kB / 427.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.318e-05/0.2777, allocations: 101 kB / 427.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.2777, allocations: 3.984 kB / 427.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.278, allocations: 27.98 kB / 427.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.2781, allocations: 19.97 kB / 427.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.2781, allocations: 8 kB / 427.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.2783, allocations: 194 kB / 427.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2783, allocations: 4 kB / 427.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2787, allocations: 91.83 kB / 427.6 MB, free: 13.62 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.0009874/0.2797, allocations: 0.9167 MB / 428.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007725/0.2805, allocations: 449.3 kB / 429 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2805, allocations: 0 / 429 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.2809, allocations: 354.2 kB / 429.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.2813, allocations: 63 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.003677/0.285, allocations: 2.714 MB / 432.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.2854, allocations: 0.7639 MB / 432.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.2855, allocations: 30.27 kB / 432.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.2857, allocations: 91.41 kB / 433 MB, free: 8.043 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2857, allocations: 0 / 433 MB, free: 8.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3163, allocations: 6.433 MB / 439.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.515/9.831, allocations: 3.984 kB / 439.4 MB, free: 1.762 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