Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009848/0.0009848, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.5 MB / 244.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007473/0.0007474, allocations: 107.8 kB / 296.7 MB, free: 6.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002739, allocations: 8 kB / 356.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2794, allocations: 51.3 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.001471/0.2809, allocations: 1.187 MB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002513/0.2812, allocations: 89.56 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.698e-05/0.2813, allocations: 0 / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.2813, allocations: 3.938 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-05/0.2814, allocations: 3.984 kB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.2816, allocations: 17.06 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.302e-05/0.2817, allocations: 27.92 kB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.935e-05/0.2818, allocations: 9.266 kB / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.588e-05/0.2819, allocations: 15.92 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.367e-05/0.2819, allocations: 0 / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.2819, allocations: 4.75 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.282, allocations: 0 / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.282, allocations: 9.219 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.282, allocations: 41.62 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.637e-05/0.2821, allocations: 15.97 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2821, allocations: 3.938 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.2821, allocations: 1.438 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.2821, allocations: 0 / 409.6 MB, free: 26.21 MB / 298.7 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.0003591/0.2825, allocations: 333.7 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.2825, allocations: 12.03 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.26e-05/0.2826, allocations: 39.52 kB / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.564e-05/0.2826, allocations: 0.9375 kB / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.2828, allocations: 188.7 kB / 410.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/0.2828, allocations: 5.406 kB / 410.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.2828, allocations: 4.375 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.2831, allocations: 106.9 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2832, allocations: 3.938 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.2832, allocations: 1.25 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2832, allocations: 3.984 kB / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.986e-05/0.2833, allocations: 25.61 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.2834, allocations: 157.7 kB / 410.4 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.2836, allocations: 58.56 kB / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/0.2836, allocations: 32.86 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.2837, allocations: 0 / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.301e-05/0.2837, allocations: 34.56 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.2837, allocations: 0 / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002137/0.2839, allocations: 85.5 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.284, allocations: 55.41 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.536e-05/0.284, allocations: 105.9 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.284, allocations: 25.7 kB / 410.8 MB, free: 24.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.363e-05/0.2841, allocations: 88.12 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.965e-06/0.2841, allocations: 4 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-06/0.2841, allocations: 7.938 kB / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.2841, allocations: 310.8 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.2842, allocations: 0 / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.022e-05/0.2842, allocations: 31.42 kB / 411.2 MB, free: 24.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.2842, allocations: 39.38 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2842, allocations: 0 / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.63e-05/0.2843, allocations: 57.56 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2843, allocations: 7.938 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.2843, allocations: 4 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2844, allocations: 128 / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.913e-05/0.2844, allocations: 8 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2844, allocations: 4 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.998e-05/0.2844, allocations: 0 / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.2845, allocations: 7.938 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/0.2845, allocations: 109.8 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.774e-05/0.2846, allocations: 73.45 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.2847, allocations: 11.91 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2847, allocations: 0 / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2847, allocations: 0 / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2847, allocations: 0 / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.663e-05/0.2847, allocations: 157.7 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2847, allocations: 0 / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.852e-05/0.2848, allocations: 8 kB / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2848, allocations: 3.938 kB / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.2848, allocations: 4 kB / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2848, allocations: 0 / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2848, allocations: 3.938 kB / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.285, allocations: 93.42 kB / 411.8 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.285, allocations: 84.95 kB / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.285, allocations: 3.938 kB / 411.9 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.443e-05/0.285, allocations: 7.984 kB / 411.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-06/0.285, allocations: 0 / 411.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.285, allocations: 4 kB / 411.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.425e-05/0.2851, allocations: 83.28 kB / 412 MB, free: 23.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2851, allocations: 0 / 412 MB, free: 23.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001779/0.2853, allocations: 4 kB / 412 MB, free: 23.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003209/0.2856, allocations: 0.628 MB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.989e-05/0.2857, allocations: 19.98 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.2857, allocations: 4 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.373e-06/0.2857, allocations: 3.938 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.2859, allocations: 23.98 kB / 412.7 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005045/0.2865, allocations: 415 kB / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.2866, allocations: 0.6848 MB / 413.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.2866, allocations: 15.44 kB / 413.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2866, allocations: 96 / 413.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.572/2.859, allocations: 0.761 MB / 414.6 MB, free: 20.74 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,step.height,step.offset,step.simTime,step.startTime,step.y,time