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.0008193/0.0008193, allocations: 92.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000973/0.0009731, allocations: 204.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002516, allocations: 8.281 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09127/0.09153, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002089/0.09365, allocations: 1.851 MB / 361.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008542/0.09453, allocations: 0.604 MB / 361.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.946e-05/0.09461, allocations: 4 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.185e-05/0.09471, allocations: 15.86 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.706e-05/0.0948, allocations: 43.67 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.09498, allocations: 43.91 kB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.09514, allocations: 151.2 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.09528, allocations: 49.44 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.09541, allocations: 51.84 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.697e-05/0.09551, allocations: 63.7 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.09554, allocations: 8 kB / 362.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.749e-05/0.09561, allocations: 23.92 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.09564, allocations: 23.86 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.449e-05/0.09572, allocations: 89.38 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.0959, allocations: 155.6 kB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.09591, allocations: 0 / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09592, allocations: 0 / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.09593, allocations: 0 / 362.5 MB, free: 9.996 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.0004787/0.09641, allocations: 431.2 kB / 362.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.09645, allocations: 8.031 kB / 363 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.589e-05/0.0965, allocations: 46.73 kB / 363 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.09667, allocations: 24.83 kB / 363 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.09687, allocations: 212 kB / 363.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.09689, allocations: 12.61 kB / 363.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.09692, allocations: 16.38 kB / 363.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.09713, allocations: 115.6 kB / 363.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.09715, allocations: 4 kB / 363.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.09717, allocations: 4 kB / 363.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.09718, allocations: 7.938 kB / 363.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.09736, allocations: 84.64 kB / 363.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.09809, allocations: 0.6057 MB / 364.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.09837, allocations: 94.56 kB / 364.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.212e-05/0.09845, allocations: 36.91 kB / 364.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.09847, allocations: 0 / 364.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.0985, allocations: 30.56 kB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.09851, allocations: 0 / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006319/0.09914, allocations: 275.3 kB / 364.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.09918, allocations: 51.41 kB / 364.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.0993, allocations: 149.7 kB / 364.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.09932, allocations: 29.7 kB / 364.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.09939, allocations: 127.9 kB / 364.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.09942, allocations: 23.66 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.09945, allocations: 21.7 kB / 364.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.09954, allocations: 314.8 kB / 365.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.219e-05/0.09961, allocations: 27.98 kB / 365.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.141e-05/0.09969, allocations: 42.56 kB / 365.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.09984, allocations: 78.5 kB / 365.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.09985, allocations: 0 / 365.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002674/0.1001, allocations: 142.2 kB / 365.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.1001, allocations: 4 kB / 365.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1002, allocations: 0 / 365.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.1003, allocations: 44.89 kB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.891e-05/0.1004, allocations: 8 kB / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.1017, allocations: 1.524 MB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.1017, allocations: 8.281 kB / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.1017, allocations: 0 / 367.1 MB, free: 5.004 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 8.762e-05/0.1018, allocations: 133.8 kB / 367.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.1019, allocations: 11.84 kB / 367.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.1019, allocations: 16.72 kB / 367.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1019, allocations: 3.938 kB / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.61e-07/0.1019, allocations: 0 / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.1019, allocations: 192 / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.1021, allocations: 213.6 kB / 367.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1021, allocations: 3.938 kB / 367.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.493e-05/0.1022, allocations: 7.984 kB / 367.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1023, allocations: 36.78 kB / 367.5 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.1023, allocations: 4 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.1034, allocations: 1.498 MB / 369 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1034, allocations: 0 / 369 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.1037, allocations: 220.3 kB / 369.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.1037, allocations: 101 kB / 369.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.1037, allocations: 0 / 369.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.1038, allocations: 11.91 kB / 369.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.1039, allocations: 3.984 kB / 369.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.1039, allocations: 4 kB / 369.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.215e-05/0.104, allocations: 114.2 kB / 369.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.104, allocations: 3.938 kB / 369.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.1043, allocations: 43.94 kB / 369.5 MB, free: 2.359 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.0004925/0.1048, allocations: 0.7483 MB / 370.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003321/0.1052, allocations: 198.5 kB / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1052, allocations: 0 / 370.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.1054, allocations: 154.7 kB / 370.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.1056, allocations: 16.09 kB / 370.6 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1358/0.2414, allocations: 1.782 MB / 372.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.2415, allocations: 0.7132 MB / 373.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.635e-05/0.2416, allocations: 6.766 kB / 373.1 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.2416, allocations: 32.02 kB / 373.1 MB, free: 17.31 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2416, allocations: 0 / 373.1 MB, free: 17.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01261/0.2543, allocations: 2.66 MB / 375.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001225/0.2544, allocations: 219.5 kB / 376 MB, free: 16.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/1.84, allocations: 0 / 376 MB, free: 16.86 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