Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 106.6 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 63.92 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09126, allocations: 50.53 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003187/0.09447, allocations: 2.205 MB / 359.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009625/0.09546, allocations: 0.6233 MB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.748e-05/0.09557, allocations: 4 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.09571, allocations: 15.84 kB / 359.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.115e-05/0.09581, allocations: 39.7 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.096, allocations: 35.95 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.09619, allocations: 159.2 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.09633, allocations: 49.45 kB / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.09648, allocations: 59.73 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.59e-05/0.09659, allocations: 67.67 kB / 360.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.09662, allocations: 8 kB / 360.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.645e-05/0.0967, allocations: 20 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.746e-05/0.09673, allocations: 27.86 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.023e-05/0.09681, allocations: 63.67 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.097, allocations: 163.7 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.09701, allocations: 0 / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.09702, allocations: 4 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.09703, allocations: 0 / 360.4 MB, free: 10.86 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005386/0.09757, allocations: 443.2 kB / 360.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.09761, allocations: 8.031 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.32e-05/0.09766, allocations: 46.73 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.09784, allocations: 28.73 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.09804, allocations: 208 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.09806, allocations: 12.61 kB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.09808, allocations: 12.38 kB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.09832, allocations: 123.6 kB / 361.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.09833, allocations: 0 / 361.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.09835, allocations: 3.938 kB / 361.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.09836, allocations: 4 kB / 361.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.09854, allocations: 84.59 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007513/0.0993, allocations: 0.6018 MB / 362 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.09959, allocations: 78.62 kB / 362 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.809e-05/0.09968, allocations: 36.97 kB / 362.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.0997, allocations: 3.938 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.09973, allocations: 38.56 kB / 362.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.09973, allocations: 0 / 362.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006355/0.1004, allocations: 263.3 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.1004, allocations: 51.41 kB / 362.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1005, allocations: 149.3 kB / 362.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.1006, allocations: 25.7 kB / 362.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.1006, allocations: 135.9 kB / 362.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1007, allocations: 23.69 kB / 362.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.1007, allocations: 29.61 kB / 362.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.774e-05/0.1008, allocations: 314.8 kB / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.705e-05/0.1009, allocations: 19.98 kB / 363.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.199e-05/0.1009, allocations: 46.56 kB / 363.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.1011, allocations: 70.5 kB / 363.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1011, allocations: 0 / 363.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002907/0.1014, allocations: 142.2 kB / 363.4 MB, free: 7.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1014, allocations: 4 kB / 363.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1014, allocations: 0 / 363.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001705/0.1016, allocations: 44.89 kB / 363.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.338e-05/0.1017, allocations: 8 kB / 363.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.1031, allocations: 1.51 MB / 364.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.538e-05/0.1032, allocations: 15.89 kB / 364.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.1032, allocations: 4 kB / 365 MB, free: 5.875 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.6e-05/0.1033, allocations: 125.8 kB / 365.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.1034, allocations: 19.88 kB / 365.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.346e-05/0.1034, allocations: 8.719 kB / 365.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1034, allocations: 4 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.1034, allocations: 0 / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1034, allocations: 0 / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.1037, allocations: 213.6 kB / 365.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1037, allocations: 3.938 kB / 365.3 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.693e-05/0.1037, allocations: 7.938 kB / 365.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000125/0.1039, allocations: 44.77 kB / 365.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.1039, allocations: 0 / 365.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.105, allocations: 1.498 MB / 366.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.105, allocations: 128 / 366.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003002/0.1053, allocations: 224.2 kB / 367.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.1054, allocations: 85.14 kB / 367.2 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.1054, allocations: 0 / 367.2 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.1055, allocations: 16 kB / 367.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.1055, allocations: 3.984 kB / 367.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.1056, allocations: 8 kB / 367.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.065e-05/0.1056, allocations: 110.6 kB / 367.3 MB, free: 3.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1056, allocations: 0 / 367.3 MB, free: 3.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.106, allocations: 43.84 kB / 367.3 MB, free: 3.246 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005466/0.1066, allocations: 0.7479 MB / 368.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.1069, allocations: 190.5 kB / 368.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1069, allocations: 0 / 368.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.1072, allocations: 154.8 kB / 368.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.1075, allocations: 22.73 kB / 368.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.1098, allocations: 1.748 MB / 370.2 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1335/0.2434, allocations: 0.7107 MB / 370.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.981e-05/0.2435, allocations: 7.422 kB / 370.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.2435, allocations: 34.25 kB / 371 MB, free: 19.49 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2435, allocations: 0 / 371 MB, free: 19.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.2679, allocations: 2.732 MB / 373.7 MB, free: 19.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.2681, allocations: 231.9 kB / 373.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.991, allocations: 0 / 373.9 MB, free: 18.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches