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.001595/0.001595, allocations: 118.8 kB / 17.79 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001981/0.001982, allocations: 201.2 kB / 18.73 MB, free: 4.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2554, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004126/0.2595, allocations: 3.022 MB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.261, allocations: 0.7439 MB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.2612, allocations: 11.94 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.2615, allocations: 59.44 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.2617, allocations: 95.09 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.2621, allocations: 99.81 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.2625, allocations: 418.1 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.2628, allocations: 115.1 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.2631, allocations: 159.4 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.2633, allocations: 163.3 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.2634, allocations: 32 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.802e-05/0.2635, allocations: 36 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.23e-05/0.2635, allocations: 75.75 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.2638, allocations: 179.1 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004199/0.2642, allocations: 396.3 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2642, allocations: 0 / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2642, allocations: 0 / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.2642, allocations: 0 / 414.3 MB, free: 11.92 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.001016/0.2653, allocations: 0.6353 MB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.2653, allocations: 8.031 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.255e-05/0.2654, allocations: 62.67 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.2656, allocations: 44.55 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.2661, allocations: 295.5 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.2661, allocations: 20.94 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.2662, allocations: 24.38 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.2667, allocations: 261 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2667, allocations: 0 / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.2667, allocations: 12 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.2668, allocations: 8 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.2672, allocations: 218.1 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.2689, allocations: 0.9638 MB / 416.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.2694, allocations: 307.7 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.2696, allocations: 108.2 kB / 417.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.2697, allocations: 0 / 417.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.2697, allocations: 38.56 kB / 417.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.2697, allocations: 4 kB / 417.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001239/0.271, allocations: 0.5558 MB / 417.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.271, allocations: 63.34 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2713, allocations: 254.6 kB / 418.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.2713, allocations: 33.7 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.2715, allocations: 183.9 kB / 418.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.2715, allocations: 66.92 kB / 418.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9e-05/0.2716, allocations: 41.94 kB / 418.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.2718, allocations: 342.8 kB / 418.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.272, allocations: 76.42 kB / 418.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.2722, allocations: 111.4 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003637/0.2726, allocations: 190.4 kB / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2726, allocations: 0 / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006371/0.2732, allocations: 322.7 kB / 419.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2733, allocations: 4.062 kB / 419.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2733, allocations: 4 kB / 419.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.2736, allocations: 69.67 kB / 419.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.2739, allocations: 43.91 kB / 419.6 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.2765, allocations: 3.055 MB / 422.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.2767, allocations: 23.78 kB / 422.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.2767, allocations: 11.94 kB / 422.7 MB, free: 2.906 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.0001822/0.2769, allocations: 149.8 kB / 422.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.177e-05/0.277, allocations: 23.72 kB / 422.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.654e-05/0.2771, allocations: 34.17 kB / 422.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2771, allocations: 0 / 422.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.2771, allocations: 4.188 kB / 422.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2771, allocations: 0 / 422.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2781, allocations: 0.6874 MB / 423.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2781, allocations: 4 kB / 423.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.2782, allocations: 19.98 kB / 423.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002092/0.2785, allocations: 81.61 kB / 423.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.2785, allocations: 0 / 423.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.2809, allocations: 3.044 MB / 426.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.281, allocations: 0 / 426.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006483/0.2816, allocations: 388.8 kB / 427.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.971e-05/0.2817, allocations: 104.8 kB / 427.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.2818, allocations: 4 kB / 427.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.282, allocations: 31.97 kB / 427.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.2821, allocations: 23.97 kB / 427.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.2821, allocations: 4 kB / 427.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.2823, allocations: 190 kB / 427.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2823, allocations: 0 / 427.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003999/0.2827, allocations: 95.78 kB / 427.6 MB, free: 13.63 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.0009084/0.2836, allocations: 0.9127 MB / 428.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.2845, allocations: 445.3 kB / 428.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2845, allocations: 0 / 428.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004268/0.2849, allocations: 358.4 kB / 429.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.2853, allocations: 48.72 kB / 429.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003668/0.289, allocations: 2.714 MB / 432 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.2894, allocations: 0.7678 MB / 432.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.2895, allocations: 26.28 kB / 432.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2897, allocations: 87.41 kB / 432.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2897, allocations: 0 / 432.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.32, allocations: 6.553 MB / 439.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.568/9.888, allocations: 3.094 kB / 439.5 MB, free: 1.688 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.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