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.001906/0.001906, allocations: 114.2 kB / 17.33 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002621/0.002621, allocations: 209.8 kB / 18.27 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 62.77 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.142, allocations: 50.52 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003949/0.146, allocations: 2.213 MB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1472, allocations: 0.6156 MB / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1474, allocations: 0 / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.1475, allocations: 19.84 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.1477, allocations: 31.7 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.1479, allocations: 51.89 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.1482, allocations: 163.2 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1484, allocations: 56.03 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.1486, allocations: 67.83 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.1487, allocations: 63.64 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.1488, allocations: 16 kB / 360.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.861e-05/0.1488, allocations: 24 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.015e-05/0.1489, allocations: 27.86 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.013e-05/0.149, allocations: 71.67 kB / 360.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.1492, allocations: 167.7 kB / 360.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.1492, allocations: 0 / 360.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1492, allocations: 0 / 360.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1492, allocations: 0 / 360.6 MB, free: 10.72 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.0006357/0.1499, allocations: 447.1 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1499, allocations: 12.03 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.883e-05/0.15, allocations: 46.73 kB / 361.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.1502, allocations: 28.73 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.1504, allocations: 208 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.1505, allocations: 8.609 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.1505, allocations: 12.38 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.1507, allocations: 119.6 kB / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1508, allocations: 3.938 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1508, allocations: 4 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1508, allocations: 8 kB / 361.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.151, allocations: 76.66 kB / 361.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000879/0.1519, allocations: 0.6018 MB / 362.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.1522, allocations: 86.56 kB / 362.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.717e-05/0.1523, allocations: 32.97 kB / 362.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1523, allocations: 0 / 362.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.1523, allocations: 34.56 kB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.1523, allocations: 4 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006937/0.153, allocations: 259.3 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.1531, allocations: 55.41 kB / 362.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.1532, allocations: 152.7 kB / 362.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.1532, allocations: 33.64 kB / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.1533, allocations: 127.9 kB / 363 MB, free: 8.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1534, allocations: 19.75 kB / 363 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.667e-05/0.1534, allocations: 29.61 kB / 363 MB, free: 8.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1535, allocations: 318.8 kB / 363.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.735e-05/0.1536, allocations: 20 kB / 363.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.502e-05/0.1537, allocations: 50.5 kB / 363.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.1538, allocations: 74.53 kB / 363.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1539, allocations: 0 / 363.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002839/0.1541, allocations: 142.2 kB / 363.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1542, allocations: 4 kB / 363.6 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1542, allocations: 4 kB / 363.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.1544, allocations: 32.83 kB / 363.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.79e-05/0.1545, allocations: 12 kB / 363.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/0.1561, allocations: 1.694 MB / 365.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.1562, allocations: 8.281 kB / 365.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.1562, allocations: 0 / 365.4 MB, free: 5.562 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 0.0001117/0.1563, allocations: 133.7 kB / 365.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.1563, allocations: 11.97 kB / 365.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.1564, allocations: 16.7 kB / 365.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1564, allocations: 4 kB / 365.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1564, allocations: 0 / 365.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1564, allocations: 0 / 365.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.1566, allocations: 213.5 kB / 365.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1566, allocations: 0 / 365.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.411e-05/0.1567, allocations: 4 kB / 365.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.1568, allocations: 40.83 kB / 365.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.1568, allocations: 4 kB / 365.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.1581, allocations: 1.674 MB / 367.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1581, allocations: 192 / 367.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.1584, allocations: 220.3 kB / 367.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1585, allocations: 92.94 kB / 367.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.1585, allocations: 0 / 367.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.1586, allocations: 7.906 kB / 367.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.1587, allocations: 11.98 kB / 367.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-06/0.1587, allocations: 3.938 kB / 367.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.996e-05/0.1588, allocations: 118 kB / 367.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1588, allocations: 4 kB / 367.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.1591, allocations: 39.94 kB / 367.9 MB, free: 2.746 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.000587/0.1597, allocations: 0.7444 MB / 368.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.1602, allocations: 194.5 kB / 368.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1602, allocations: 0 / 368.9 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002094/0.1604, allocations: 154.7 kB / 369 MB, free: 1.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.1607, allocations: 15.98 kB / 369 MB, free: 1.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1688/0.3295, allocations: 1.748 MB / 370.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.3297, allocations: 0.7168 MB / 371.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.421e-05/0.3298, allocations: 4.766 kB / 371.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.3299, allocations: 30.84 kB / 371.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3299, allocations: 0 / 371.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.3517, allocations: 2.855 MB / 374.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.3519, allocations: 227.4 kB / 374.6 MB, free: 18.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.474, allocations: 0 / 374.6 MB, free: 18.04 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