Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001271/0.001272, allocations: 106.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.00126, allocations: 193.4 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2902, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002919/0.2932, allocations: 1.435 MB / 401.7 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003155/0.2935, allocations: 98.05 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.075e-05/0.2936, allocations: 0 / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.687e-05/0.2937, allocations: 5.031 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.661e-05/0.2937, allocations: 7.938 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.294, allocations: 22.59 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.819e-05/0.2941, allocations: 30.14 kB / 401.8 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.2942, allocations: 8.781 kB / 401.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.347e-05/0.2942, allocations: 7.531 kB / 401.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.117e-05/0.2943, allocations: 15.28 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.2943, allocations: 2.25 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.949e-06/0.2943, allocations: 1.125 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.2944, allocations: 10.19 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.2944, allocations: 14.31 kB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.079e-05/0.2945, allocations: 26.28 kB / 401.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2945, allocations: 1.062 kB / 401.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2945, allocations: 0 / 401.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.2945, allocations: 0 / 401.9 MB, free: 7.105 MB / 318.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.0005062/0.2951, allocations: 348.1 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.2951, allocations: 9.688 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.2952, allocations: 31.84 kB / 402.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.2952, allocations: 10.06 kB / 402.3 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.2954, allocations: 196.2 kB / 402.5 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2954, allocations: 4.359 kB / 402.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.2955, allocations: 4.375 kB / 402.5 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.2958, allocations: 107.9 kB / 402.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.2958, allocations: 3.938 kB / 402.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.2958, allocations: 4 kB / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2958, allocations: 0 / 402.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.208e-05/0.2959, allocations: 19.92 kB / 402.6 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000182/0.2961, allocations: 157.7 kB / 402.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.2963, allocations: 46.55 kB / 402.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.129e-05/0.2964, allocations: 28.92 kB / 402.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.2964, allocations: 4 kB / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.2964, allocations: 30.56 kB / 402.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.2964, allocations: 4 kB / 402.9 MB, free: 5.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002472/0.2967, allocations: 77.5 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.2967, allocations: 55.39 kB / 403 MB, free: 5.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.2968, allocations: 105.9 kB / 403.1 MB, free: 5.703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.2969, allocations: 29.7 kB / 403.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.562e-05/0.2969, allocations: 88.12 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.075e-06/0.2969, allocations: 4 kB / 403.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.297, allocations: 17.72 kB / 403.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.2971, allocations: 310.8 kB / 403.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.313e-05/0.2971, allocations: 3.984 kB / 403.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.243e-05/0.2972, allocations: 27.44 kB / 403.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.471e-05/0.2972, allocations: 39.38 kB / 403.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2972, allocations: 0 / 403.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.194e-05/0.2973, allocations: 57.56 kB / 403.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2973, allocations: 12.06 kB / 403.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.2973, allocations: 4 kB / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2974, allocations: 0 / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.421e-05/0.2974, allocations: 8 kB / 403.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.2974, allocations: 0 / 403.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.904e-05/0.2975, allocations: 0 / 403.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.2975, allocations: 4 kB / 403.7 MB, free: 5.055 MB / 318.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 9.44e-05/0.2976, allocations: 117.8 kB / 403.8 MB, free: 4.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.2977, allocations: 65.45 kB / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.2977, allocations: 11.91 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2977, allocations: 0 / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2977, allocations: 4 kB / 403.9 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.2978, allocations: 4.312 kB / 403.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.2979, allocations: 153.9 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2979, allocations: 4 kB / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.813e-05/0.2979, allocations: 7.938 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.298, allocations: 11.92 kB / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.298, allocations: 0 / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.298, allocations: 0 / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.298, allocations: 3.984 kB / 404.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001644/0.2982, allocations: 85.06 kB / 404.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.2982, allocations: 88.98 kB / 404.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.2982, allocations: 7.938 kB / 404.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.234e-05/0.2983, allocations: 0 / 404.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-06/0.2983, allocations: 0 / 404.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.2983, allocations: 0 / 404.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.283e-05/0.2983, allocations: 91.28 kB / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2984, allocations: 0 / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001818/0.2986, allocations: 0 / 404.4 MB, free: 4.301 MB / 318.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.0005012/0.2991, allocations: 0.628 MB / 405 MB, free: 3.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.2992, allocations: 31.92 kB / 405 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2992, allocations: 0 / 405 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.12e-07/0.2992, allocations: 0 / 405 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.2994, allocations: 23.92 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3006, allocations: 1.146 MB / 406.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.3009, allocations: 0.6844 MB / 406.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.378e-05/0.301, allocations: 0 / 406.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.301, allocations: 11.44 kB / 406.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.301, allocations: 0 / 406.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02293/0.324, allocations: 1.243 MB / 408.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/8.146, allocations: 8.688 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches