Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001745/0.001745, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002258/0.002258, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 56.28 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1553, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.004819/0.1602, allocations: 1.767 MB / 359.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.1618, allocations: 0.5999 MB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.162, allocations: 7.938 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.093e-05/0.1622, allocations: 11.86 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.1624, allocations: 15.86 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006686/0.1631, allocations: 119.4 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.1633, allocations: 83.72 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1635, allocations: 29.42 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.1637, allocations: 51.83 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.1638, allocations: 43.72 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.1639, allocations: 12 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.01e-05/0.164, allocations: 12 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.1641, allocations: 23.91 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1642, allocations: 51.67 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.1645, allocations: 111.6 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1645, allocations: 0 / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1645, allocations: 0 / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.1645, allocations: 0 / 360.5 MB, free: 11.04 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008233/0.1654, allocations: 439.1 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.1654, allocations: 8.031 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.1655, allocations: 38.75 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000224/0.1657, allocations: 24.73 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.1661, allocations: 229 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.1661, allocations: 8.375 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.1662, allocations: 8.375 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000709/0.1669, allocations: 266.4 kB / 361.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1669, allocations: 3.984 kB / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1669, allocations: 4 kB / 361.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.167, allocations: 4 kB / 361.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1672, allocations: 51.97 kB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.1677, allocations: 310.3 kB / 361.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.168, allocations: 131.9 kB / 362 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1682, allocations: 78.66 kB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.322e-05/0.1682, allocations: 8.141 kB / 362.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.1683, allocations: 38.5 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.224e-06/0.1683, allocations: 3.938 kB / 362.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005733/0.1689, allocations: 169.4 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.169, allocations: 122.7 kB / 362.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.1692, allocations: 154.2 kB / 362.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.1692, allocations: 29.7 kB / 362.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.1693, allocations: 100.2 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.1694, allocations: 15.89 kB / 362.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.1695, allocations: 41.61 kB / 362.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1696, allocations: 326.8 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.608e-05/0.1697, allocations: 23.98 kB / 363.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.1699, allocations: 141.7 kB / 363.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.1702, allocations: 162.4 kB / 363.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.1702, allocations: 4 kB / 363.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004215/0.1707, allocations: 181.2 kB / 363.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1707, allocations: 4.375 kB / 363.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1707, allocations: 8.516 kB / 363.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.1707, allocations: 8 kB / 363.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.1709, allocations: 31.92 kB / 363.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.742e-05/0.1709, allocations: 15.81 kB / 363.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.1711, allocations: 19.84 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1711, allocations: 8 kB / 363.7 MB, free: 7.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.1713, allocations: 137.8 kB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/0.1716, allocations: 121.4 kB / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.1717, allocations: 20.7 kB / 363.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1717, allocations: 4 kB / 363.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.1717, allocations: 7.938 kB / 363.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.1717, allocations: 4 kB / 363.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.172, allocations: 197.5 kB / 364.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1721, allocations: 0 / 364.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1722, allocations: 23.98 kB / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1722, allocations: 0 / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.1723, allocations: 8 kB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.1723, allocations: 3.984 kB / 364.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.1723, allocations: 3.938 kB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.1727, allocations: 251.7 kB / 364.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.1729, allocations: 105 kB / 364.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.1729, allocations: 7.938 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.1731, allocations: 8 kB / 364.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.1731, allocations: 7.922 kB / 364.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.1731, allocations: 4 kB / 364.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.1733, allocations: 120.1 kB / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1733, allocations: 0 / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.1738, allocations: 20 kB / 364.7 MB, free: 6.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001021/0.1748, allocations: 0.8466 MB / 365.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.1752, allocations: 115.7 kB / 365.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1752, allocations: 1.062 kB / 365.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.1753, allocations: 4 kB / 365.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007954/0.1761, allocations: 102.8 kB / 365.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.1788, allocations: 1.845 MB / 367.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.1793, allocations: 0.7241 MB / 368.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.345e-05/0.1794, allocations: 9.422 kB / 368.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1795, allocations: 35.42 kB / 368.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1795, allocations: 0 / 368.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2572/0.4367, allocations: 2.683 MB / 371.1 MB, free: 20.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.502, allocations: 5.594 kB / 371.1 MB, free: 20.31 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable upSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample2.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! " Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:time,add.u1,add.u2,add.y,sample1.y,sine.y