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.001529/0.00153, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001708/0.001708, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.526/1.526, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 46.64 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1365, allocations: 49.44 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003682/0.1402, allocations: 1.635 MB / 351.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1415, allocations: 490.7 kB / 351.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.1417, allocations: 0 / 351.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.956e-05/0.1418, allocations: 11.92 kB / 351.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002156/0.142, allocations: 11.92 kB / 351.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.1425, allocations: 52.7 kB / 351.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.1427, allocations: 47.86 kB / 351.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1428, allocations: 8.188 kB / 351.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.1429, allocations: 27.84 kB / 351.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.533e-05/0.143, allocations: 23.86 kB / 351.8 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1431, allocations: 8 kB / 351.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.66e-05/0.1431, allocations: 0 / 351.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.1432, allocations: 11.92 kB / 351.8 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.261e-05/0.1433, allocations: 31.8 kB / 351.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.1434, allocations: 55.73 kB / 351.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1434, allocations: 0 / 351.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1435, allocations: 7.938 kB / 351.9 MB, free: 2.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1435, allocations: 0 / 351.9 MB, free: 2.332 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.0006592/0.1441, allocations: 383.4 kB / 352.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1442, allocations: 12.03 kB / 352.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.1442, allocations: 38.75 kB / 352.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.1443, allocations: 8.844 kB / 352.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.1445, allocations: 208 kB / 352.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1445, allocations: 8.312 kB / 352.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1446, allocations: 4.375 kB / 352.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.1449, allocations: 137.8 kB / 352.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1449, allocations: 0 / 352.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1449, allocations: 3.984 kB / 352.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.1449, allocations: 0 / 352.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.382e-05/0.145, allocations: 27.92 kB / 352.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003917/0.1454, allocations: 278.6 kB / 353 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.1457, allocations: 156.8 kB / 353.2 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.149e-05/0.1458, allocations: 42.62 kB / 353.2 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.1458, allocations: 4 kB / 353.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.1458, allocations: 34.56 kB / 353.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.1458, allocations: 0 / 353.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002977/0.1462, allocations: 97.5 kB / 353.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.1462, allocations: 111 kB / 353.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.1464, allocations: 140.9 kB / 353.6 MB, free: 408 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1465, allocations: 29.7 kB / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.581e-05/0.1465, allocations: 88.12 kB / 353.7 MB, free: 280 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.1466, allocations: 7.906 kB / 353.7 MB, free: 272 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.985e-05/0.1466, allocations: 29.59 kB / 353.7 MB, free: 236 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1468, allocations: 322.8 kB / 354 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.828e-05/0.1469, allocations: 15.98 kB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.838e-05/0.147, allocations: 44.28 kB / 354.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.1471, allocations: 64.22 kB / 354.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1471, allocations: 0 / 354.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001869/0.1473, allocations: 85.55 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1473, allocations: 8 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1473, allocations: 0 / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1474, allocations: 3.938 kB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.672e-05/0.1475, allocations: 11.98 kB / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.1475, allocations: 8.141 kB / 354.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.523e-05/0.1475, allocations: 4.125 kB / 354.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.1476, allocations: 4 kB / 354.3 MB, free: 15.62 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.0001391/0.1477, allocations: 137.6 kB / 354.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.571e-05/0.1478, allocations: 53.81 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.1479, allocations: 12.25 kB / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1479, allocations: 4 kB / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1479, allocations: 0 / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1479, allocations: 0 / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.1482, allocations: 185.4 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1482, allocations: 0 / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.229e-05/0.1482, allocations: 12 kB / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.1483, allocations: 4 kB / 354.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1483, allocations: 3.984 kB / 354.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1483, allocations: 3.938 kB / 354.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1483, allocations: 0 / 354.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.1485, allocations: 197.1 kB / 354.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.179e-05/0.1486, allocations: 93 kB / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.1486, allocations: 4 kB / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.1487, allocations: 0 / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.1487, allocations: 7.984 kB / 355 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.1488, allocations: 0 / 355 MB, free: 14.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.193e-05/0.1488, allocations: 103.3 kB / 355.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.1489, allocations: 0 / 355.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000239/0.1491, allocations: 19.88 kB / 355.1 MB, free: 14.69 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.000583/0.1497, allocations: 0.7492 MB / 355.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001619/0.1499, allocations: 40.05 kB / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1499, allocations: 0 / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.851e-05/0.1499, allocations: 19.92 kB / 355.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004389/0.1504, allocations: 24.02 kB / 355.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.1519, allocations: 1.462 MB / 357.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.1523, allocations: 0.6926 MB / 358.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.92e-05/0.1523, allocations: 4 kB / 358.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.1524, allocations: 19.42 kB / 358.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1524, allocations: 4 kB / 358.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0124/0.1648, allocations: 1.597 MB / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.1651, allocations: 232.4 kB / 359.9 MB, free: 9.797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.119, allocations: 0 / 359.9 MB, free: 9.797 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