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.001252/0.001252, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 60.38 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002751/0.1053, allocations: 1.437 MB / 359 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002678/0.1056, allocations: 97.36 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.246e-05/0.1057, allocations: 0 / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.508e-05/0.1058, allocations: 7.922 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.288e-05/0.1058, allocations: 0 / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.106, allocations: 27.91 kB / 359.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.553e-05/0.1061, allocations: 31.88 kB / 359.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.324e-05/0.1062, allocations: 15.98 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.608e-05/0.1062, allocations: 4 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.992e-05/0.1063, allocations: 11.94 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.1063, allocations: 0 / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.215e-05/0.1063, allocations: 4 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.935e-05/0.1063, allocations: 7.922 kB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.1064, allocations: 11.94 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.98e-05/0.1065, allocations: 27.89 kB / 359.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1065, allocations: 0 / 359.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1065, allocations: 4 kB / 359.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1065, allocations: 4 kB / 359.3 MB, free: 12.32 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.0003649/0.1069, allocations: 339.7 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1069, allocations: 8.031 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.107, allocations: 38.75 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.487e-05/0.107, allocations: 4.844 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.1071, allocations: 176.2 kB / 359.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1072, allocations: 4.375 kB / 359.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1072, allocations: 8.375 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.1075, allocations: 107.9 kB / 359.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1075, allocations: 3.938 kB / 359.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.1075, allocations: 0 / 359.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1075, allocations: 7.922 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.118e-05/0.1076, allocations: 23.97 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001208/0.1077, allocations: 157.7 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.1079, allocations: 58.52 kB / 360.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.762e-05/0.108, allocations: 20.89 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.108, allocations: 4 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.108, allocations: 30.56 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.108, allocations: 0 / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002097/0.1082, allocations: 73.61 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.1083, allocations: 55.41 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.758e-05/0.1084, allocations: 109.8 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1084, allocations: 25.7 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.2e-05/0.1084, allocations: 88.12 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.1084, allocations: 7.938 kB / 360.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.1085, allocations: 13.72 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.791e-05/0.1086, allocations: 322.8 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.287e-05/0.1086, allocations: 4 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.458e-05/0.1086, allocations: 27.44 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.859e-05/0.1087, allocations: 39.36 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1087, allocations: 4 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.097e-05/0.1088, allocations: 57.55 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1088, allocations: 10.91 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1088, allocations: 0 / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1088, allocations: 0 / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.405e-05/0.1089, allocations: 11.98 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1089, allocations: 3.938 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.137e-05/0.1089, allocations: 12.06 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-06/0.1089, allocations: 0 / 361.1 MB, free: 10.24 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 6.697e-05/0.109, allocations: 113.8 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1091, allocations: 61.61 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.1091, allocations: 7.906 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1092, allocations: 0 / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1092, allocations: 0 / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1092, allocations: 0 / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.412e-05/0.1093, allocations: 153.7 kB / 361.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.1093, allocations: 4 kB / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.73e-05/0.1093, allocations: 20.17 kB / 361.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.1093, allocations: 7.875 kB / 361.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1094, allocations: 4 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1094, allocations: 0 / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1094, allocations: 0 / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.1095, allocations: 89.33 kB / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.481e-05/0.1096, allocations: 85.11 kB / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.1096, allocations: 3.938 kB / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.341e-05/0.1096, allocations: 0 / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-06/0.1096, allocations: 0 / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.1096, allocations: 4 kB / 361.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.1097, allocations: 87.27 kB / 361.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1097, allocations: 0 / 361.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001977/0.1099, allocations: 4 kB / 361.7 MB, free: 9.5 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.0003978/0.1103, allocations: 0.624 MB / 362.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.1104, allocations: 27.92 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1104, allocations: 0 / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5e-07/0.1104, allocations: 3.938 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.1106, allocations: 24.23 kB / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009757/0.1116, allocations: 1.158 MB / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1119, allocations: 0.6845 MB / 364.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.402e-05/0.1119, allocations: 4 kB / 364.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.112, allocations: 15.42 kB / 364.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.112, allocations: 0 / 364.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.131, allocations: 1.203 MB / 365.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/7.664, allocations: 7.234 kB / 365.5 MB, free: 5.711 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,step.startTime,assignClock1.u,assignClock1.y,step.y