Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 200.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008925/0.0008925, allocations: 91.69 kB / 296.7 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002087, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2355, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001299/0.2369, allocations: 1.14 MB / 409.3 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001501/0.237, allocations: 31.84 kB / 409.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.277e-05/0.2371, allocations: 0 / 409.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.2371, allocations: 4 kB / 409.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.503e-05/0.2372, allocations: 3.938 kB / 409.3 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.2374, allocations: 32.42 kB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.186e-05/0.2375, allocations: 24.67 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.259e-05/0.2376, allocations: 5.844 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.996e-05/0.2376, allocations: 8 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.873e-05/0.2377, allocations: 15.91 kB / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.311e-05/0.2377, allocations: 0 / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-06/0.2377, allocations: 0 / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.2377, allocations: 13.09 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.2377, allocations: 33.64 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.238e-05/0.2378, allocations: 19.95 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2378, allocations: 1.219 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2378, allocations: 0 / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.2378, allocations: 0 / 409.5 MB, free: 26.34 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.0002865/0.2381, allocations: 341.3 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2382, allocations: 12.72 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.477e-05/0.2382, allocations: 34.69 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.071e-05/0.2382, allocations: 1.562 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.2384, allocations: 190 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.2384, allocations: 384 / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.2384, allocations: 4.375 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.2387, allocations: 129 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.2387, allocations: 3.938 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.2387, allocations: 1 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.2387, allocations: 0 / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.2389, allocations: 31.5 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.068e-05/0.239, allocations: 153.7 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.2391, allocations: 58.48 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.767e-05/0.2392, allocations: 28.92 kB / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.2392, allocations: 0 / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.2392, allocations: 34.56 kB / 410.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.2392, allocations: 3.938 kB / 410.5 MB, free: 25.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002341/0.2394, allocations: 89.5 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.2395, allocations: 55.41 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.14e-05/0.2396, allocations: 105.8 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-06/0.2396, allocations: 25.7 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.907e-05/0.2396, allocations: 84.14 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.001e-05/0.2396, allocations: 7.922 kB / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.2396, allocations: 0 / 410.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.933e-05/0.2397, allocations: 322.8 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.108e-05/0.2397, allocations: 4 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.924e-05/0.2397, allocations: 31.42 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.32e-05/0.2397, allocations: 43.38 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2397, allocations: 0 / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.394e-05/0.2398, allocations: 57.53 kB / 411.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2398, allocations: 11.94 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2398, allocations: 3.938 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.2399, allocations: 0 / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.4e-05/0.2399, allocations: 8 kB / 411.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2399, allocations: 7.938 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.24, allocations: 8.312 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.24, allocations: 4 kB / 411.3 MB, free: 24.24 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: 5 (step.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.24, allocations: 105.8 kB / 411.4 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.2401, allocations: 77.58 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.109e-05/0.2402, allocations: 3.906 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2402, allocations: 4 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2402, allocations: 384 / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2402, allocations: 0 / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.72e-05/0.2402, allocations: 165.7 kB / 411.7 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.2403, allocations: 4 kB / 411.7 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.156e-05/0.2403, allocations: 8 kB / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.2403, allocations: 3.938 kB / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.2403, allocations: 0 / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2403, allocations: 3.938 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2403, allocations: 4 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.2405, allocations: 93 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.57e-05/0.2405, allocations: 77.11 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.2405, allocations: 11.94 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.914e-05/0.2406, allocations: 3.984 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.184e-06/0.2406, allocations: 3.938 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.2406, allocations: 4 kB / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.088e-05/0.2406, allocations: 83.28 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2406, allocations: 0 / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001798/0.2408, allocations: 4 kB / 412 MB, free: 23.48 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: 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 (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.0003552/0.2412, allocations: 0.6591 MB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.2413, allocations: 27.92 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2413, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.2413, allocations: 0 / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.2415, allocations: 39.33 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.242, allocations: 417.5 kB / 413.1 MB, free: 22.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.905e-05/0.2421, allocations: 0.6809 MB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.213e-05/0.2421, allocations: 19.42 kB / 413.8 MB, free: 21.53 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2421, allocations: 4 kB / 413.8 MB, free: 21.53 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.441/2.683, allocations: 0.8105 MB / 414.6 MB, free: 20.72 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time