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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 115.9 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.4 MB / 246.4 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 68.42 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1206, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003778/0.1244, allocations: 1.507 MB / 358.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004709/0.1249, allocations: 87.75 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.288e-05/0.125, allocations: 4 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.1251, allocations: 3.938 kB / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.338e-05/0.1252, allocations: 4 kB / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.1255, allocations: 23.78 kB / 358.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.1257, allocations: 23.94 kB / 358.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1258, allocations: 15.92 kB / 358.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.969e-05/0.1258, allocations: 4 kB / 358.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.1259, allocations: 19.91 kB / 358.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.126, allocations: 4 kB / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.126, allocations: 4 kB / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.215e-05/0.126, allocations: 7.938 kB / 358.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.541e-05/0.1261, allocations: 15.88 kB / 358.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1262, allocations: 27.91 kB / 358.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.1262, allocations: 0 / 358.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.1262, allocations: 0 / 358.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.1263, allocations: 0 / 358.8 MB, free: 12.56 MB / 302.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.0007816/0.127, allocations: 339.7 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.578e-05/0.1271, allocations: 12.03 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.1272, allocations: 34.75 kB / 359.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.1272, allocations: 12.84 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1275, allocations: 176.3 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.1276, allocations: 4.375 kB / 359.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.1276, allocations: 4.375 kB / 359.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.128, allocations: 107.8 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.128, allocations: 7.938 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.128, allocations: 4 kB / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1281, allocations: 0 / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.485e-05/0.1281, allocations: 19.92 kB / 359.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.1284, allocations: 149.7 kB / 359.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.1286, allocations: 62.47 kB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.466e-05/0.1287, allocations: 28.92 kB / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.1287, allocations: 0 / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1287, allocations: 34.56 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.1287, allocations: 0 / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003208/0.1291, allocations: 73.55 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.1291, allocations: 55.41 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1293, allocations: 109.8 kB / 360 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.1294, allocations: 25.7 kB / 360.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.1294, allocations: 84.14 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.845e-06/0.1295, allocations: 0 / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.1295, allocations: 25.64 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003418/0.1299, allocations: 314.8 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.781e-05/0.1299, allocations: 0 / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.13, allocations: 35.42 kB / 360.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.005e-05/0.1301, allocations: 35.38 kB / 360.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1301, allocations: 0 / 360.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001013/0.1302, allocations: 57.48 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1302, allocations: 16.05 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.1302, allocations: 4 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1303, allocations: 0 / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.863e-05/0.1303, allocations: 4 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1304, allocations: 4 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.1304, allocations: 3.938 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.1304, allocations: 4 kB / 360.6 MB, free: 10.48 MB / 302.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 0.000144/0.1306, allocations: 113.8 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.1307, allocations: 69.55 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.1307, allocations: 7.906 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1307, allocations: 0 / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1308, allocations: 0 / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1308, allocations: 4 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.131, allocations: 149.9 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1311, allocations: 7.984 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.297e-05/0.1311, allocations: 8 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.1311, allocations: 3.938 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1311, allocations: 4 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1312, allocations: 7.938 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1312, allocations: 0 / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.1314, allocations: 88.95 kB / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.1315, allocations: 77.48 kB / 361.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.1315, allocations: 3.938 kB / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.462e-05/0.1316, allocations: 4 kB / 361.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.1316, allocations: 3.984 kB / 361.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1316, allocations: 0 / 361.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.011e-05/0.1316, allocations: 87.28 kB / 361.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1317, allocations: 0 / 361.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001908/0.1319, allocations: 4 kB / 361.3 MB, free: 9.742 MB / 302.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.0005925/0.1325, allocations: 0.6279 MB / 361.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.1326, allocations: 27.92 kB / 361.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1327, allocations: 0 / 361.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.72e-07/0.1327, allocations: 0 / 361.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.1329, allocations: 35.89 kB / 362 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.1346, allocations: 1.158 MB / 363.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005052/0.1351, allocations: 0.6806 MB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.82e-05/0.1351, allocations: 7.984 kB / 363.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.1352, allocations: 11.44 kB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1352, allocations: 0 / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3944/0.5297, allocations: 1.125 MB / 365 MB, free: 6.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003402/0.53, allocations: 228.2 kB / 365.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.524, allocations: 3.938 kB / 365.2 MB, free: 5.809 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches