Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",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.001294/0.001294, allocations: 111.1 kB / 16.51 MB, free: 6.715 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.001181/0.001181, 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.614/1.614, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 43.14 kB / 300.1 MB, free: 6.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1394, allocations: 49.44 MB / 349.5 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.004513/0.1439, allocations: 1.569 MB / 351.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004876/0.1445, allocations: 143.5 kB / 351.2 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1446, allocations: 0 / 351.2 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.186e-05/0.1448, allocations: 3.938 kB / 351.2 MB, free: 3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.1449, allocations: 4 kB / 351.2 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.1452, allocations: 31.91 kB / 351.3 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1454, allocations: 39.86 kB / 351.3 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1455, allocations: 19.97 kB / 351.3 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.664e-05/0.1456, allocations: 7.938 kB / 351.3 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.299e-05/0.1456, allocations: 15.92 kB / 351.3 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1457, allocations: 4 kB / 351.3 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.393e-05/0.1457, allocations: 0 / 351.3 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.557e-05/0.1458, allocations: 15.92 kB / 351.4 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.1458, allocations: 23.8 kB / 351.4 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.146, allocations: 43.83 kB / 351.4 MB, free: 2.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.146, allocations: 4 kB / 351.4 MB, free: 2.793 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.146, allocations: 0 / 351.4 MB, free: 2.793 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.146, allocations: 0 / 351.4 MB, free: 2.793 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007033/0.1467, allocations: 367.5 kB / 351.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.1468, allocations: 8.031 kB / 351.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.645e-05/0.1469, allocations: 38.75 kB / 351.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.1469, allocations: 8.844 kB / 351.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.1472, allocations: 192.1 kB / 352 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.1472, allocations: 4.375 kB / 352 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.1472, allocations: 8.375 kB / 352 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.1476, allocations: 109.6 kB / 352.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.1476, allocations: 7.875 kB / 352.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.1476, allocations: 3.938 kB / 352.2 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1477, allocations: 4 kB / 352.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.106e-05/0.1478, allocations: 19.98 kB / 352.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000439/0.1482, allocations: 257.8 kB / 352.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.1485, allocations: 142.2 kB / 352.6 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.06e-05/0.1486, allocations: 33.7 kB / 352.6 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.1486, allocations: 0 / 352.6 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.1486, allocations: 42.56 kB / 352.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.314e-06/0.1487, allocations: 0 / 352.6 MB, free: 1.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002782/0.1489, allocations: 73.52 kB / 352.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.149, allocations: 89.17 kB / 352.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1492, allocations: 137.8 kB / 352.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.1492, allocations: 25.7 kB / 353 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.068e-05/0.1493, allocations: 88.14 kB / 353 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.1493, allocations: 0 / 353 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-05/0.1494, allocations: 21.62 kB / 353.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1495, allocations: 318.8 kB / 353.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.52e-05/0.1496, allocations: 12 kB / 353.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.254e-05/0.1496, allocations: 31.42 kB / 353.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.788e-05/0.1497, allocations: 47.36 kB / 353.5 MB, free: 452 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1497, allocations: 3.938 kB / 353.5 MB, free: 448 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001311/0.1499, allocations: 69.61 kB / 353.5 MB, free: 372 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1499, allocations: 4 kB / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1499, allocations: 0 / 353.5 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1499, allocations: 4 kB / 353.5 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.15, allocations: 7.938 kB / 353.6 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.15, allocations: 4 kB / 353.6 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.737e-05/0.1501, allocations: 8.062 kB / 353.6 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.1501, allocations: 7.984 kB / 353.6 MB, free: 336 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001055/0.1502, allocations: 117.8 kB / 353.7 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/0.1503, allocations: 53.86 kB / 353.7 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/0.1503, allocations: 12.25 kB / 353.8 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1503, allocations: 0 / 353.8 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1503, allocations: 0 / 353.8 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1503, allocations: 4 kB / 353.8 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.1506, allocations: 169.6 kB / 353.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1506, allocations: 4 kB / 353.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.768e-05/0.1507, allocations: 15.92 kB / 353.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.1507, allocations: 0 / 353.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.1507, allocations: 3.938 kB / 353.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.1507, allocations: 0 / 353.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1507, allocations: 4 kB / 354 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.1509, allocations: 172.2 kB / 354.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.971e-05/0.151, allocations: 93 kB / 354.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.151, allocations: 4 kB / 354.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.1511, allocations: 0 / 354.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.257e-05/0.1511, allocations: 0 / 354.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-06/0.1511, allocations: 4 kB / 354.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.791e-05/0.1512, allocations: 107.2 kB / 354.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1512, allocations: 3.938 kB / 354.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000229/0.1514, allocations: 4 kB / 354.3 MB, free: 15.46 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000596/0.152, allocations: 0.7131 MB / 355 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.1522, allocations: 27.92 kB / 355.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.1522, allocations: 4.25 kB / 355.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.1522, allocations: 7.984 kB / 355.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.1526, allocations: 17.28 kB / 355.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.154, allocations: 1.339 MB / 356.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.1543, allocations: 0.6888 MB / 357.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.118e-05/0.1543, allocations: 11.98 kB / 357.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.1544, allocations: 11.44 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1544, allocations: 4 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/0.1668, allocations: 1.282 MB / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/0.167, allocations: 219 kB / 358.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.06, allocations: 0 / 358.7 MB, free: 11.05 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches