Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001632/0.001632, allocations: 117 kB / 18.49 MB, free: 4.566 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.002069/0.002069, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.613/1.613, allocations: 230.5 MB / 254.7 MB, free: 15.19 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.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 63.89 kB / 373.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1339, allocations: 53.38 MB / 427.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003154/0.1371, allocations: 1.457 MB / 428.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003197/0.1374, allocations: 91.75 kB / 428.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.172e-05/0.1375, allocations: 0 / 428.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.715e-05/0.1375, allocations: 3.938 kB / 428.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.1376, allocations: 7.922 kB / 428.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.1378, allocations: 23.92 kB / 428.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.143e-05/0.1379, allocations: 23.98 kB / 428.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.138, allocations: 7.984 kB / 428.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.138, allocations: 19.86 kB / 428.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.316e-05/0.1381, allocations: 15.92 kB / 428.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.1381, allocations: 4 kB / 428.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-06/0.1381, allocations: 4 kB / 428.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.529e-05/0.1381, allocations: 0 / 428.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.367e-05/0.1382, allocations: 15.88 kB / 428.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.504e-05/0.1382, allocations: 27.84 kB / 428.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1382, allocations: 0 / 428.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1382, allocations: 0 / 428.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.1383, allocations: 4 kB / 428.8 MB, free: 2.941 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.0004393/0.1387, allocations: 343.4 kB / 429.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1387, allocations: 8.031 kB / 429.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.047e-05/0.1388, allocations: 8.172 kB / 429.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.898e-05/0.1388, allocations: 34.75 kB / 429.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.1388, allocations: 4.891 kB / 429.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.139, allocations: 176.4 kB / 429.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.139, allocations: 384 / 429.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.139, allocations: 8.375 kB / 429.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.1393, allocations: 111.5 kB / 429.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1394, allocations: 4 kB / 429.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.1394, allocations: 0 / 429.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1394, allocations: 0 / 429.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.309e-05/0.1394, allocations: 15.98 kB / 429.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.1396, allocations: 161.6 kB / 429.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.1398, allocations: 54.55 kB / 429.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.119e-05/0.1398, allocations: 20.92 kB / 429.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.1399, allocations: 0 / 429.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.1399, allocations: 42.44 kB / 429.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 2.996e-06/0.1399, allocations: 3.984 kB / 429.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002578/0.1402, allocations: 69.67 kB / 429.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.1402, allocations: 55.34 kB / 429.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.1403, allocations: 117.8 kB / 430 MB, free: 1.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.1403, allocations: 25.7 kB / 430 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.1404, allocations: 84.14 kB / 430.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.474e-06/0.1404, allocations: 0 / 430.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.1404, allocations: 21.7 kB / 430.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1406, allocations: 318.8 kB / 430.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.1406, allocations: 4 kB / 430.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.384e-05/0.1406, allocations: 31.36 kB / 430.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.311e-05/0.1407, allocations: 39.62 kB / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1407, allocations: 0 / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.576e-05/0.1407, allocations: 61.58 kB / 430.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1408, allocations: 11.94 kB / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1408, allocations: 0 / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1408, allocations: 0 / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.476e-05/0.1408, allocations: 8 kB / 430.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1408, allocations: 0 / 430.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.496e-05/0.1409, allocations: 8.125 kB / 430.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-06/0.1409, allocations: 4 kB / 430.6 MB, free: 0.8594 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 8.475e-05/0.141, allocations: 113.8 kB / 430.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1411, allocations: 61.61 kB / 430.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.1411, allocations: 3.906 kB / 430.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1411, allocations: 4 kB / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1411, allocations: 0 / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1411, allocations: 0 / 430.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.1412, allocations: 161.6 kB / 430.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1412, allocations: 4 kB / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.043e-05/0.1413, allocations: 8 kB / 430.9 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1413, allocations: 3.938 kB / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.1413, allocations: 0 / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1413, allocations: 0 / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1413, allocations: 0 / 430.9 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.1415, allocations: 89 kB / 431 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.1415, allocations: 93.05 kB / 431.1 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.1415, allocations: 0 / 431.1 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.521e-05/0.1415, allocations: 3.984 kB / 431.1 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-06/0.1415, allocations: 0 / 431.1 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.1416, allocations: 7.938 kB / 431.1 MB, free: 208 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.354e-05/0.1416, allocations: 79.28 kB / 431.2 MB, free: 128 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1416, allocations: 0 / 431.2 MB, free: 128 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001821/0.1418, allocations: 8 kB / 431.2 MB, free: 120 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: 3 (step.y,assignClock1.u,assignClock1.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.0004604/0.1422, allocations: 0.632 MB / 431.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.1424, allocations: 20.41 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1424, allocations: 4 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.1424, allocations: 0 / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.1426, allocations: 26.64 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.1436, allocations: 1.154 MB / 433 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.1439, allocations: 0.6807 MB / 433.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.497e-05/0.144, allocations: 4 kB / 433.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.144, allocations: 14.31 kB / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.144, allocations: 0 / 433.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/0.1609, allocations: 1.288 MB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.084, allocations: 11.31 kB / 435 MB, free: 12.29 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 11.1106648449786]