Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.631/1.631, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 66.89 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1448, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003852/0.1487, allocations: 1.859 MB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.1505, allocations: 0.7594 MB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.1507, allocations: 0 / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.151, allocations: 23.73 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.1512, allocations: 19.8 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007238/0.1519, allocations: 179.5 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.1522, allocations: 151.5 kB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.1524, allocations: 53.53 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1526, allocations: 71.7 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.1527, allocations: 59.69 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.1527, allocations: 12 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.1529, allocations: 55.95 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-05/0.153, allocations: 43.84 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.127e-05/0.1531, allocations: 71.53 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.1534, allocations: 195.3 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1534, allocations: 4 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1534, allocations: 0 / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1534, allocations: 4 kB / 361.1 MB, free: 10.43 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.0008175/0.1542, allocations: 487 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.1543, allocations: 8.031 kB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.1544, allocations: 38.75 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1545, allocations: 32.64 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.1549, allocations: 243.9 kB / 361.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.1549, allocations: 4.562 kB / 361.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.1549, allocations: 15.92 kB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000682/0.1556, allocations: 335.3 kB / 362.3 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1556, allocations: 0 / 362.3 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.1557, allocations: 4 kB / 362.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1557, allocations: 0 / 362.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.1559, allocations: 83.88 kB / 362.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004374/0.1564, allocations: 345.6 kB / 362.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.1569, allocations: 266.4 kB / 362.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.1571, allocations: 104.7 kB / 363.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007303/0.1578, allocations: 0.5856 MB / 363.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1579, allocations: 38.55 kB / 363.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.763e-06/0.1579, allocations: 0 / 363.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.000632/0.1585, allocations: 233.2 kB / 363.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/0.1586, allocations: 118.7 kB / 364 MB, free: 7.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.1589, allocations: 203.2 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.1589, allocations: 29.7 kB / 364.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.159, allocations: 104.6 kB / 364.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.159, allocations: 11.89 kB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.1591, allocations: 41.7 kB / 364.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1592, allocations: 326.8 kB / 364.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.696e-05/0.1593, allocations: 43.91 kB / 364.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1595, allocations: 160.2 kB / 364.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.1597, allocations: 212.1 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1597, allocations: 0 / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003588/0.1601, allocations: 221 kB / 365.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1601, allocations: 8 kB / 365.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1602, allocations: 4 kB / 365.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1602, allocations: 4 kB / 365.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.1603, allocations: 47.92 kB / 365.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1604, allocations: 8.516 kB / 365.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.1605, allocations: 19.84 kB / 365.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.1605, allocations: 12 kB / 365.4 MB, free: 5.562 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001437/0.1607, allocations: 153.6 kB / 365.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003258/0.161, allocations: 169.2 kB / 365.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.1614, allocations: 180.8 kB / 365.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1614, allocations: 8 kB / 365.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.1614, allocations: 0 / 365.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1614, allocations: 7.969 kB / 366 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.1617, allocations: 225.4 kB / 366.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.1617, allocations: 3.984 kB / 366.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.1618, allocations: 31.92 kB / 366.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.1618, allocations: 8 kB / 366.2 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.1619, allocations: 4 kB / 366.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1619, allocations: 0 / 366.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.1619, allocations: 4 kB / 366.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.1623, allocations: 298.3 kB / 366.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1624, allocations: 112.9 kB / 366.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.1625, allocations: 8 kB / 366.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.1626, allocations: 7.984 kB / 366.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.1627, allocations: 11.94 kB / 366.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1627, allocations: 8 kB / 366.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001488/0.1628, allocations: 139.2 kB / 366.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1628, allocations: 4 kB / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.1632, allocations: 28 kB / 366.8 MB, free: 4.078 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009466/0.1641, allocations: 0.9276 MB / 367.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003656/0.1645, allocations: 148.9 kB / 367.9 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1645, allocations: 0 / 367.9 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.04e-05/0.1646, allocations: 8 kB / 367.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.1652, allocations: 149.5 kB / 368.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.1669, allocations: 1.039 MB / 369.1 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.1672, allocations: 0.7361 MB / 369.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.825e-05/0.1673, allocations: 17.55 kB / 369.8 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.765e-05/0.1674, allocations: 43.42 kB / 369.9 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of SimCode: time 5e-07/0.1674, allocations: 0 / 369.9 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2573/0.4247, allocations: 4.152 MB / 374 MB, free: 19.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.4/8.825, allocations: 11.83 kB / 374.1 MB, free: 19.73 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv failed! " Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.limiter.u,sample1.limiter.y,sample1.noise.u