Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|fractionalDelay.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|fractionalDelay.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 175.4 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09948/0.09948, allocations: 12.6 MB / 283.7 MB, free: 8.691 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006986/0.0006986, allocations: 20 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1202, allocations: 50.37 MB / 394.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay): time 0.002363/0.1226, allocations: 1.298 MB / 396.2 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1238, allocations: 0.5545 MB / 396.8 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1239, allocations: 11.94 kB / 396.8 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.1242, allocations: 3.938 kB / 396.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.885e-05/0.1242, allocations: 11.92 kB / 396.8 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002645/0.1245, allocations: 51.88 kB / 396.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.1246, allocations: 59.78 kB / 396.9 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1248, allocations: 15.98 kB / 396.9 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.956e-05/0.1248, allocations: 15.92 kB / 396.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.125, allocations: 31.84 kB / 397 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.125, allocations: 4 kB / 397 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.6e-05/0.125, allocations: 4 kB / 397 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.1251, allocations: 15.92 kB / 397 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/0.1251, allocations: 41.64 kB / 397 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.466e-05/0.1252, allocations: 43.91 kB / 397.1 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.1252, allocations: 3.938 kB / 397.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1253, allocations: 3.938 kB / 397.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.1253, allocations: 0 / 397.1 MB, free: 0.5977 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005571/0.1258, allocations: 379.3 kB / 397.5 MB, free: 184 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.1259, allocations: 8.031 kB / 397.5 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.1259, allocations: 11.81 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.1262, allocations: 195.4 kB / 397.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.1262, allocations: 4 kB / 397.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.1263, allocations: 0 / 397.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003587/0.1266, allocations: 165.7 kB / 397.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1266, allocations: 0 / 397.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.1267, allocations: 0 / 397.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1267, allocations: 4 kB / 397.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.1268, allocations: 35.92 kB / 397.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003868/0.1272, allocations: 290.6 kB / 398.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.1273, allocations: 83.83 kB / 398.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.12e-05/0.1275, allocations: 42.62 kB / 398.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.1275, allocations: 11.94 kB / 398.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1275, allocations: 34.56 kB / 398.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.1275, allocations: 0 / 398.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003536/0.1279, allocations: 113.6 kB / 398.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.128, allocations: 114.8 kB / 398.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.1282, allocations: 142.4 kB / 398.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1282, allocations: 25.7 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.67e-05/0.1283, allocations: 92.14 kB / 398.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.1284, allocations: 7.891 kB / 398.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.1284, allocations: 4.156 kB / 398.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1285, allocations: 322.8 kB / 399.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.317e-05/0.1286, allocations: 19.98 kB / 399.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.107e-05/0.1287, allocations: 65.94 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.138e-05/0.1288, allocations: 35.92 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1288, allocations: 0 / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001996/0.129, allocations: 109.4 kB / 399.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.129, allocations: 5.25 kB / 399.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.129, allocations: 4 kB / 399.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.1291, allocations: 4 kB / 399.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.1292, allocations: 15.98 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1292, allocations: 3.938 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.547e-05/0.1293, allocations: 7.938 kB / 399.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.1293, allocations: 12.16 kB / 399.4 MB, free: 13.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (fractionalDelay.first,$CLKPRE.fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 2 (fractionalDelay.first,fractionalDelay.u_buffer[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.1295, allocations: 133.6 kB / 399.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1296, allocations: 73.44 kB / 399.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.19e-05/0.1297, allocations: 16.31 kB / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1297, allocations: 0 / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.1297, allocations: 4 kB / 399.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1297, allocations: 0 / 399.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.13, allocations: 177.6 kB / 399.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.13, allocations: 0 / 399.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.783e-05/0.13, allocations: 20.02 kB / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.1301, allocations: 0 / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.1301, allocations: 0 / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1301, allocations: 4 kB / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1301, allocations: 3.984 kB / 399.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.1303, allocations: 205 kB / 400 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.1305, allocations: 97 kB / 400.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.1305, allocations: 4 kB / 400.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.1306, allocations: 4.312 kB / 400.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.1306, allocations: 4 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.1306, allocations: 7.984 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.09e-05/0.1307, allocations: 108.6 kB / 400.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 0 / 400.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.131, allocations: 12 kB / 400.3 MB, free: 13.02 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: 1 (fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 2 (fractionalDelay.u_buffer[1],fractionalDelay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001553/0.1312, allocations: 103.2 kB / 400.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002252/0.1314, allocations: 55.84 kB / 400.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1314, allocations: 4 kB / 400.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.869e-05/0.1314, allocations: 8.438 kB / 400.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.1319, allocations: 44.83 kB / 400.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006275/0.1325, allocations: 250.6 kB / 400.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.1331, allocations: 0.7004 MB / 401.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.182e-05/0.1331, allocations: 8.656 kB / 401.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.1332, allocations: 19.42 kB / 401.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1332, allocations: 0 / 401.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Templates: time 0.004145/0.1373, allocations: 0.7447 MB / 402.2 MB, free: 11.02 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.FractionalDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,fractionalDelay.y,sample.y Variables in the result:fractionalDelay.n,fractionalDelay.resolution,fractionalDelay.shift,fractionalDelay.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time