Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.001793/0.001793, allocations: 121.2 kB / 18.5 MB, free: 4.637 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.002036/0.002036, allocations: 216.7 kB / 21.46 MB, free: 1.688 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.553/1.553, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 63.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1241, allocations: 53.38 MB / 427.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003126/0.1272, allocations: 1.43 MB / 428.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000209/0.1274, allocations: 31.91 kB / 428.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.096e-05/0.1275, allocations: 7.938 kB / 428.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.788e-05/0.1275, allocations: 3.938 kB / 428.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.004e-05/0.1276, allocations: 3.938 kB / 428.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.1279, allocations: 31.95 kB / 428.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.128, allocations: 27.92 kB / 428.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.1281, allocations: 11.98 kB / 428.6 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.36e-05/0.1282, allocations: 11.94 kB / 428.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.896e-05/0.1282, allocations: 19.91 kB / 428.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.1283, allocations: 0 / 428.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.282e-05/0.1283, allocations: 4 kB / 428.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.957e-05/0.1283, allocations: 0 / 428.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.1283, allocations: 15.94 kB / 428.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.1285, allocations: 43.75 kB / 428.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1285, allocations: 0 / 428.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1285, allocations: 0 / 428.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1285, allocations: 0 / 428.7 MB, free: 2.945 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006279/0.1291, allocations: 343.4 kB / 429 MB, free: 2.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.1292, allocations: 8.031 kB / 429 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.675e-05/0.1292, allocations: 8.188 kB / 429.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.1292, allocations: 30.75 kB / 429.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.1293, allocations: 8.891 kB / 429.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1296, allocations: 180.3 kB / 429.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.1296, allocations: 384 / 429.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.1296, allocations: 8.312 kB / 429.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004591/0.1301, allocations: 119.6 kB / 429.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1301, allocations: 4 kB / 429.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1301, allocations: 4 kB / 429.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1301, allocations: 0 / 429.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.1303, allocations: 31.91 kB / 429.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001912/0.1305, allocations: 149.7 kB / 429.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.1306, allocations: 54.55 kB / 429.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.437e-05/0.1307, allocations: 24.92 kB / 429.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.1307, allocations: 3.984 kB / 429.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.1308, allocations: 46.44 kB / 429.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.1308, allocations: 0 / 429.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003227/0.1311, allocations: 81.55 kB / 429.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.1312, allocations: 59.41 kB / 429.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1313, allocations: 105.8 kB / 429.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1313, allocations: 25.7 kB / 430 MB, free: 1.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.64e-05/0.1314, allocations: 80.14 kB / 430 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.1314, allocations: 4 kB / 430.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.272e-05/0.1314, allocations: 17.72 kB / 430.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1316, allocations: 322.8 kB / 430.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.892e-05/0.1316, allocations: 4 kB / 430.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.749e-05/0.1317, allocations: 27.44 kB / 430.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.558e-05/0.1317, allocations: 39.38 kB / 430.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.1317, allocations: 3.984 kB / 430.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001005/0.1318, allocations: 65.53 kB / 430.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.1318, allocations: 7.938 kB / 430.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.1319, allocations: 0 / 430.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.1319, allocations: 7.984 kB / 430.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.007e-05/0.1319, allocations: 4 kB / 430.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.132, allocations: 8.5 kB / 430.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.276e-05/0.132, allocations: 0 / 430.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.132, allocations: 4 kB / 430.6 MB, free: 0.8281 MB / 350.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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001045/0.1321, allocations: 113.8 kB / 430.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.1323, allocations: 73.69 kB / 430.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.1323, allocations: 7.953 kB / 430.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1323, allocations: 7.984 kB / 430.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1323, allocations: 3.984 kB / 430.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1323, allocations: 4 kB / 430.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1325, allocations: 157.6 kB / 430.9 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1325, allocations: 0 / 430.9 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.465e-05/0.1325, allocations: 15.92 kB / 430.9 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1325, allocations: 3.938 kB / 430.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.1325, allocations: 0 / 430.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1325, allocations: 0 / 430.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1325, allocations: 0 / 430.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.1327, allocations: 89.05 kB / 431 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.156e-05/0.1328, allocations: 96.98 kB / 431.1 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.1328, allocations: 0 / 431.1 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.563e-05/0.1329, allocations: 8 kB / 431.1 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-06/0.1329, allocations: 0 / 431.1 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1329, allocations: 0 / 431.1 MB, free: 148 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.528e-05/0.1329, allocations: 83.27 kB / 431.2 MB, free: 64 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1329, allocations: 0 / 431.2 MB, free: 64 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1331, allocations: 8 kB / 431.2 MB, free: 56 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0006464/0.1338, allocations: 0.6476 MB / 431.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.1339, allocations: 27.92 kB / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1339, allocations: 4 kB / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-07/0.1339, allocations: 0 / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1343, allocations: 31.95 kB / 431.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.1356, allocations: 1.174 MB / 433.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.136, allocations: 0.6807 MB / 433.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.272e-05/0.136, allocations: 0 / 433.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.1361, allocations: 23.42 kB / 433.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1361, allocations: 3.938 kB / 433.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.1549, allocations: 1.415 MB / 435.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.141, allocations: 11.98 kB / 435.2 MB, free: 12.04 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time [Calling sys.exit(0), Time elapsed: 11.056075877975672]