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.001723/0.001723, allocations: 122.2 kB / 17.79 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002077, allocations: 198 kB / 18.73 MB, free: 4.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.88 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2593, allocations: 50.55 MB / 408.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004356/0.2637, allocations: 3.018 MB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.2652, allocations: 0.7556 MB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.2654, allocations: 4 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.2656, allocations: 51.44 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.2658, allocations: 99.06 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.2662, allocations: 103.8 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.2666, allocations: 414.2 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.2669, allocations: 107.1 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.2672, allocations: 159.4 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.2674, allocations: 163.3 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.2674, allocations: 35.94 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.2675, allocations: 40 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.2676, allocations: 67.77 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.2678, allocations: 179.1 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004703/0.2683, allocations: 393.4 kB / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2683, allocations: 0 / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2683, allocations: 0 / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.2683, allocations: 7.938 kB / 414.4 MB, free: 11.85 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.00107/0.2694, allocations: 0.635 MB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.2695, allocations: 16.02 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.292e-05/0.2695, allocations: 62.67 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.2697, allocations: 56.69 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004158/0.2702, allocations: 283.7 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.2702, allocations: 20.94 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.2702, allocations: 24.38 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.2708, allocations: 261 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2708, allocations: 3.938 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.2708, allocations: 19.98 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2708, allocations: 4 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.2713, allocations: 214.1 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.2731, allocations: 0.9758 MB / 417 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005766/0.2736, allocations: 291.8 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.2739, allocations: 104.8 kB / 417.3 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.2739, allocations: 8 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.274, allocations: 38.5 kB / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.274, allocations: 0 / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00131/0.2753, allocations: 0.5591 MB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.2753, allocations: 51.41 kB / 418 MB, free: 7.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.2756, allocations: 266.6 kB / 418.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2756, allocations: 29.7 kB / 418.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2758, allocations: 180.2 kB / 418.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.394e-05/0.2758, allocations: 83.3 kB / 418.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.189e-05/0.2759, allocations: 49.89 kB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2761, allocations: 342.8 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.2763, allocations: 80.42 kB / 419 MB, free: 6.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.2765, allocations: 107.4 kB / 419.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.2769, allocations: 190.5 kB / 419.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2769, allocations: 0 / 419.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006738/0.2776, allocations: 326.9 kB / 419.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2776, allocations: 4 kB / 419.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2777, allocations: 3.938 kB / 419.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.2779, allocations: 73.67 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.2781, allocations: 39.97 kB / 419.7 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/0.2807, allocations: 3.048 MB / 422.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.2809, allocations: 27.84 kB / 422.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.281, allocations: 7.938 kB / 422.8 MB, free: 2.809 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.0001714/0.2812, allocations: 149.7 kB / 423 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.2812, allocations: 31.75 kB / 423 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/0.2813, allocations: 26.17 kB / 423 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2813, allocations: 8.062 kB / 423 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.2813, allocations: 4 kB / 423 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2813, allocations: 3.984 kB / 423 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.2824, allocations: 0.6758 MB / 423.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2824, allocations: 4 kB / 423.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.2826, allocations: 28.16 kB / 423.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000208/0.2828, allocations: 77.67 kB / 423.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2828, allocations: 4 kB / 423.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002541/0.2854, allocations: 3.045 MB / 426.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2854, allocations: 0 / 426.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006967/0.2861, allocations: 386.2 kB / 427.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.979e-05/0.2862, allocations: 108.9 kB / 427.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.2862, allocations: 0 / 427.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.2865, allocations: 35.97 kB / 427.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/0.2866, allocations: 15.98 kB / 427.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.2866, allocations: 8 kB / 427.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.2868, allocations: 190 kB / 427.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2868, allocations: 0 / 427.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.2872, allocations: 95.83 kB / 427.7 MB, free: 13.53 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.0009641/0.2882, allocations: 0.9245 MB / 428.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008346/0.289, allocations: 441.3 kB / 429 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.289, allocations: 128 / 429 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.2895, allocations: 357.2 kB / 429.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.2899, allocations: 52.59 kB / 429.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.2937, allocations: 2.725 MB / 432.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.2941, allocations: 0.7678 MB / 432.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.2943, allocations: 22.28 kB / 433 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.2944, allocations: 91.41 kB / 433 MB, free: 7.957 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2944, allocations: 4 kB / 433.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.3282, allocations: 6.435 MB / 439.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.895/10.22, allocations: 7.922 kB / 439.5 MB, free: 1.676 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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