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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 119.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 215.5 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002973/0.002973, allocations: 63.91 kB / 373 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1371, allocations: 53.37 MB / 426.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.00514/0.1422, allocations: 1.877 MB / 428.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.1443, allocations: 0.7711 MB / 429 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.1445, allocations: 7.938 kB / 429 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.1447, allocations: 15.8 kB / 429 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.1449, allocations: 23.8 kB / 429.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008673/0.1458, allocations: 171.6 kB / 429.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003475/0.1462, allocations: 147.6 kB / 429.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1463, allocations: 33.55 kB / 429.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/0.1466, allocations: 67.77 kB / 429.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1467, allocations: 67.56 kB / 429.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.1468, allocations: 12 kB / 429.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.147, allocations: 55.95 kB / 429.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.1471, allocations: 39.91 kB / 429.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.1472, allocations: 75.53 kB / 429.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.1476, allocations: 211.1 kB / 429.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1476, allocations: 0 / 429.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1476, allocations: 0 / 429.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1476, allocations: 0 / 429.9 MB, free: 1.031 MB / 350.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.001067/0.1487, allocations: 478.7 kB / 430.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.1487, allocations: 12.03 kB / 430.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.741e-05/0.1488, allocations: 38.75 kB / 430.4 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.149, allocations: 32.78 kB / 430.5 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.1495, allocations: 256.1 kB / 430.7 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.1496, allocations: 8.562 kB / 430.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.1496, allocations: 11.94 kB / 430.7 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1506, allocations: 329.1 kB / 431.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.1507, allocations: 4 kB / 431.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.1507, allocations: 8 kB / 431.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1507, allocations: 0 / 431.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003914/0.1511, allocations: 87.88 kB / 431.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.1517, allocations: 337.5 kB / 431.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000754/0.1525, allocations: 262.3 kB / 431.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.1528, allocations: 98.02 kB / 431.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009782/0.1538, allocations: 0.5817 MB / 432.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.1538, allocations: 34.56 kB / 432.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.054e-06/0.1538, allocations: 4 kB / 432.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009573/0.1548, allocations: 253.3 kB / 432.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1549, allocations: 114.8 kB / 432.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.1552, allocations: 195.2 kB / 433 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1553, allocations: 33.7 kB / 433 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1554, allocations: 104.5 kB / 433.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.1554, allocations: 19.84 kB / 433.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.1555, allocations: 37.7 kB / 433.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.1557, allocations: 334.8 kB / 433.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.1558, allocations: 39.98 kB / 433.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.1561, allocations: 161.1 kB / 433.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.1566, allocations: 200.1 kB / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.1566, allocations: 4 kB / 433.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000589/0.1572, allocations: 225 kB / 434.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.1572, allocations: 7.984 kB / 434.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1572, allocations: 4.594 kB / 434.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.1572, allocations: 12 kB / 434.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.1575, allocations: 39.92 kB / 434.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.1575, allocations: 4 kB / 434.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.1577, allocations: 19.94 kB / 434.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.1577, allocations: 12 kB / 434.2 MB, free: 12.17 MB / 366.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.0002304/0.1579, allocations: 153.6 kB / 434.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005209/0.1584, allocations: 167.7 kB / 434.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005753/0.159, allocations: 183.4 kB / 434.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.159, allocations: 0 / 434.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.159, allocations: 0 / 434.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.159, allocations: 0 / 434.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003874/0.1594, allocations: 241.3 kB / 435 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.1594, allocations: 0 / 435 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.1596, allocations: 35.91 kB / 435 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1596, allocations: 0 / 435 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.1597, allocations: 12 kB / 435 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1597, allocations: 0 / 435 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1597, allocations: 0 / 435 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006571/0.1603, allocations: 284.1 kB / 435.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.1605, allocations: 112.9 kB / 435.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.1606, allocations: 19.92 kB / 435.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.1608, allocations: 8 kB / 435.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.1608, allocations: 0 / 435.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.1608, allocations: 11.98 kB / 435.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.161, allocations: 143 kB / 435.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.161, allocations: 0 / 435.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005671/0.1616, allocations: 32 kB / 435.6 MB, free: 10.68 MB / 366.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.001488/0.1631, allocations: 0.9184 MB / 436.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005231/0.1636, allocations: 154 kB / 436.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1636, allocations: 0 / 436.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.573e-05/0.1637, allocations: 4 kB / 436.7 MB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009483/0.1646, allocations: 148.8 kB / 436.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003941/0.1686, allocations: 2.185 MB / 439 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005386/0.1691, allocations: 0.732 MB / 439.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.1692, allocations: 17.55 kB / 439.8 MB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1693, allocations: 47.41 kB / 439.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1693, allocations: 0 / 439.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.2024, allocations: 4.299 MB / 444.1 MB, free: 2.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/7.879, allocations: 3.5 kB / 444.1 MB, free: 2.07 MB / 366.1 MB " [Timeout remaining time 652] (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 3.99122e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "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! " [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 10.585447835037485]