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.001269/0.001269, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 67.19 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.0877, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003786/0.09153, allocations: 3.069 MB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.0927, allocations: 0.744 MB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.09284, allocations: 11.94 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.09302, allocations: 35.69 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.09318, allocations: 95.23 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.09346, allocations: 79.91 kB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.09382, allocations: 398.2 kB / 361.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.09403, allocations: 100.7 kB / 361.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.09428, allocations: 147.4 kB / 361.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.09444, allocations: 151.3 kB / 361.7 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.09449, allocations: 20 kB / 361.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.535e-05/0.09458, allocations: 28 kB / 361.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/0.09465, allocations: 63.75 kB / 361.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.0948, allocations: 163.1 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.09513, allocations: 374.9 kB / 362.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09514, allocations: 0 / 362.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.09515, allocations: 4 kB / 362.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.09516, allocations: 0 / 362.3 MB, free: 8.715 MB / 302.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.0009425/0.09611, allocations: 0.6414 MB / 363 MB, free: 8.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.09616, allocations: 8.031 kB / 363 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.954e-05/0.09624, allocations: 70.72 kB / 363 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.09641, allocations: 40.56 kB / 363.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.09672, allocations: 275.6 kB / 363.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.09675, allocations: 24.88 kB / 363.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.09679, allocations: 28.38 kB / 363.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.09731, allocations: 257 kB / 363.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.09733, allocations: 4 kB / 363.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.09736, allocations: 12 kB / 363.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.09738, allocations: 7.938 kB / 363.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.09787, allocations: 218.1 kB / 363.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.09947, allocations: 0.9794 MB / 364.9 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.09998, allocations: 307.6 kB / 365.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.1002, allocations: 100.8 kB / 365.3 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.1003, allocations: 8 kB / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.1003, allocations: 34.56 kB / 365.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.1003, allocations: 4 kB / 365.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001225/0.1015, allocations: 0.5593 MB / 365.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.1016, allocations: 59.34 kB / 365.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.1018, allocations: 258.6 kB / 366.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.1018, allocations: 29.7 kB / 366.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.102, allocations: 183.8 kB / 366.4 MB, free: 4.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.102, allocations: 71 kB / 366.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.388e-05/0.1021, allocations: 45.94 kB / 366.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1022, allocations: 338.8 kB / 366.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.1024, allocations: 76.42 kB / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.1027, allocations: 104.2 kB / 367 MB, free: 3.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.103, allocations: 195 kB / 367.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1031, allocations: 0 / 367.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000652/0.1037, allocations: 330.7 kB / 367.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1037, allocations: 4 kB / 367.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1038, allocations: 0 / 367.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.104, allocations: 73.67 kB / 367.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.1042, allocations: 39.91 kB / 367.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1455/0.2498, allocations: 2.831 MB / 370.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.2501, allocations: 27.95 kB / 370.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.2501, allocations: 5.688 kB / 370.5 MB, free: 19.39 MB / 302.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.0001462/0.2502, allocations: 148 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.918e-05/0.2503, allocations: 25.28 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.2504, allocations: 32.66 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.2504, allocations: 7.031 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.2504, allocations: 2.375 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2504, allocations: 1.266 kB / 370.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.2514, allocations: 0.6837 MB / 371.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.2514, allocations: 8.609 kB / 371.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.2516, allocations: 26.25 kB / 371.4 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002048/0.2518, allocations: 76.27 kB / 371.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.2518, allocations: 7.719 kB / 371.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001584/0.2534, allocations: 2.821 MB / 374.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2534, allocations: 2.016 kB / 374.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.254, allocations: 379.6 kB / 374.7 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.941e-05/0.2541, allocations: 104.2 kB / 374.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.2541, allocations: 4.906 kB / 374.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.2544, allocations: 32.86 kB / 374.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.2544, allocations: 24.45 kB / 374.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2545, allocations: 8.953 kB / 374.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2546, allocations: 189.7 kB / 375.1 MB, free: 16.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2546, allocations: 4.625 kB / 375.1 MB, free: 16.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004073/0.2551, allocations: 101.2 kB / 375.2 MB, free: 16.09 MB / 302.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.0007383/0.2558, allocations: 0.9137 MB / 376.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000649/0.2565, allocations: 442.1 kB / 376.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2565, allocations: 1.312 kB / 376.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003504/0.2568, allocations: 346.4 kB / 376.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.2573, allocations: 49.64 kB / 376.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.2604, allocations: 2.836 MB / 379.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.2606, allocations: 0.7648 MB / 380.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.2607, allocations: 18.2 kB / 380.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.2608, allocations: 85.95 kB / 380.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2608, allocations: 4 kB / 380.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.2771, allocations: 5.98 MB / 386.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001358/0.2773, allocations: 225.9 kB / 386.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.019, allocations: 1.156 kB / 386.8 MB, free: 11.02 MB / 302.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