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) 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.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 115.7 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.02 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.004056/0.128, allocations: 1.484 MB / 358.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.1283, allocations: 35.84 kB / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.089e-05/0.1284, allocations: 0 / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.1285, allocations: 0 / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.551e-05/0.1285, allocations: 3.938 kB / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.1288, allocations: 27.97 kB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.1289, allocations: 27.92 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.1291, allocations: 8 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.699e-05/0.1291, allocations: 15.92 kB / 358.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.035e-05/0.1292, allocations: 15.92 kB / 358.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.1292, allocations: 4 kB / 358.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.337e-05/0.1293, allocations: 4 kB / 358.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.1293, allocations: 7.922 kB / 358.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.672e-05/0.1293, allocations: 15.88 kB / 358.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.1295, allocations: 31.91 kB / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1295, allocations: 0 / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1295, allocations: 0 / 358.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1295, allocations: 4 kB / 358.8 MB, free: 12.61 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.0006197/0.1302, allocations: 346.2 kB / 359.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.1302, allocations: 12.03 kB / 359.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.1303, allocations: 34.75 kB / 359.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.1304, allocations: 12.83 kB / 359.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.1306, allocations: 176.3 kB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.1307, allocations: 4.375 kB / 359.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.1307, allocations: 4.375 kB / 359.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.1311, allocations: 119.8 kB / 359.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1311, allocations: 3.938 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1312, allocations: 7.938 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1312, allocations: 0 / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.1313, allocations: 23.97 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.1315, allocations: 161.7 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.1317, allocations: 62.47 kB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.768e-05/0.1318, allocations: 28.92 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.1318, allocations: 0 / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.1319, allocations: 30.56 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.1319, allocations: 0 / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002942/0.1322, allocations: 85.59 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.1322, allocations: 55.41 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1324, allocations: 105.8 kB / 360 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.1324, allocations: 25.7 kB / 360 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.1324, allocations: 88.14 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.1325, allocations: 7.844 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.1325, allocations: 17.72 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.1327, allocations: 314.8 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.586e-05/0.1327, allocations: 8 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.418e-05/0.1328, allocations: 27.44 kB / 360.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.717e-05/0.1328, allocations: 39.73 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1328, allocations: 4 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.03e-05/0.1329, allocations: 61.62 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.133, allocations: 11.94 kB / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/0.1331, allocations: 4 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1331, allocations: 0 / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.801e-05/0.1332, allocations: 8 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.1332, allocations: 3.938 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.14e-05/0.1332, allocations: 4 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-06/0.1332, allocations: 3.938 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: 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 8.291e-05/0.1333, allocations: 121.9 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.1335, allocations: 73.45 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.1336, allocations: 11.89 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1336, allocations: 0 / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1337, allocations: 0 / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1337, allocations: 0 / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.1338, allocations: 153.7 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1338, allocations: 0 / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.731e-05/0.1339, allocations: 11.98 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1339, allocations: 7.938 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/0.1341, allocations: 4 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1341, allocations: 3.938 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1341, allocations: 0 / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.1343, allocations: 89.09 kB / 361.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.1343, allocations: 84.95 kB / 361.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.1344, allocations: 11.94 kB / 361.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.05e-05/0.1344, allocations: 0 / 361.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-06/0.1345, allocations: 4.281 kB / 361.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.1345, allocations: 4 kB / 361.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.246e-05/0.1345, allocations: 83.27 kB / 361.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1346, allocations: 0 / 361.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001902/0.1347, allocations: 8 kB / 361.3 MB, free: 9.715 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: 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.0006031/0.1354, allocations: 0.6514 MB / 361.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.1355, allocations: 35.92 kB / 362 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1355, allocations: 0 / 362 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1355, allocations: 0 / 362 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.1359, allocations: 31.64 kB / 362 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.137, allocations: 1.184 MB / 363.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.1372, allocations: 0.6806 MB / 363.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.536e-05/0.1373, allocations: 4 kB / 363.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.548e-05/0.1373, allocations: 11.42 kB / 363.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1373, allocations: 7.938 kB / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2789/0.4163, allocations: 1.253 MB / 365.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003246/0.4167, allocations: 222.3 kB / 365.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.547, allocations: 4 kB / 365.4 MB, free: 5.605 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches