Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009531, allocations: 92.8 kB / 16.65 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 184 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.611/1.611, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004466/0.0004466, allocations: 4 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1297, allocations: 50.41 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002213/0.132, allocations: 1.3 MB / 353.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009801/0.133, allocations: 490.8 kB / 353.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1332, allocations: 4 kB / 353.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.987e-05/0.1333, allocations: 3.938 kB / 353.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.1334, allocations: 4 kB / 353.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.1339, allocations: 55.77 kB / 353.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.1341, allocations: 43.86 kB / 353.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.1342, allocations: 20.17 kB / 353.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1343, allocations: 27.84 kB / 353.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.434e-05/0.1344, allocations: 19.86 kB / 353.9 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.1344, allocations: 4 kB / 353.9 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.471e-05/0.1345, allocations: 0 / 353.9 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.746e-05/0.1345, allocations: 7.938 kB / 353.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.531e-05/0.1346, allocations: 61.48 kB / 354 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.1348, allocations: 51.73 kB / 354 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.1348, allocations: 0 / 354 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1348, allocations: 4 kB / 354 MB, free: 1.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1348, allocations: 0 / 354 MB, free: 1.492 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.000678/0.1355, allocations: 375.5 kB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.483e-05/0.1356, allocations: 12.03 kB / 354.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.1356, allocations: 30.75 kB / 354.4 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/0.1357, allocations: 8.844 kB / 354.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.136, allocations: 206.9 kB / 354.6 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.136, allocations: 4.375 kB / 354.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.136, allocations: 8.375 kB / 354.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004069/0.1364, allocations: 137.8 kB / 354.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1365, allocations: 0 / 354.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1365, allocations: 4 kB / 354.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.1365, allocations: 4 kB / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1366, allocations: 27.92 kB / 354.8 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.1371, allocations: 278.6 kB / 355.1 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.1374, allocations: 164.9 kB / 355.3 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.1376, allocations: 38.62 kB / 355.3 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.1376, allocations: 4 kB / 355.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.1377, allocations: 38.48 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.1377, allocations: 4 kB / 355.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.000378/0.1381, allocations: 93.52 kB / 355.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.1382, allocations: 115.1 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.1384, allocations: 138.1 kB / 355.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1384, allocations: 25.7 kB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.1385, allocations: 92.14 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.1385, allocations: 11.88 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.1386, allocations: 13.72 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1387, allocations: 318.8 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.443e-05/0.1388, allocations: 27.92 kB / 356.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.418e-05/0.1389, allocations: 44.28 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.139, allocations: 64.22 kB / 356.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.139, allocations: 7.938 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002001/0.1392, allocations: 93.45 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1392, allocations: 4 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1393, allocations: 4.125 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1393, allocations: 7.984 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.833e-05/0.1394, allocations: 8 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1394, allocations: 0 / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.368e-05/0.1394, allocations: 4 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.1395, allocations: 7.984 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001182/0.1396, allocations: 125.8 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.742e-05/0.1397, allocations: 53.53 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.1398, allocations: 16.25 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1398, allocations: 4 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1398, allocations: 3.938 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1398, allocations: 0 / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.14, allocations: 185.4 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.14, allocations: 0 / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.003e-05/0.1401, allocations: 11.98 kB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.1401, allocations: 4 kB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.1401, allocations: 0 / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1401, allocations: 0 / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.1401, allocations: 4 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000243/0.1404, allocations: 201.3 kB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.787e-05/0.1405, allocations: 96.98 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.1405, allocations: 4 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.368e-05/0.1406, allocations: 7.984 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.1406, allocations: 4 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.1407, allocations: 0 / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.957e-05/0.1408, allocations: 114 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1408, allocations: 0 / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.141, allocations: 15.94 kB / 357.2 MB, free: 13.83 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0007203/0.1417, allocations: 0.7491 MB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001773/0.1419, allocations: 48.17 kB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.142, allocations: 0 / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.142, allocations: 15.98 kB / 358 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.1425, allocations: 35.08 kB / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.1442, allocations: 1.472 MB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.1446, allocations: 0.6965 MB / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.745e-05/0.1447, allocations: 11.98 kB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.381e-05/0.1447, allocations: 19.44 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1448, allocations: 0 / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/0.1588, allocations: 1.527 MB / 361.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002547/0.1591, allocations: 231.8 kB / 362 MB, free: 9.008 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.254, allocations: 0 / 362 MB, free: 9.008 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches