Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001708/0.001708, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009164/0.0009162, allocations: 107.3 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002541, allocations: 4 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2483, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001401/0.2498, allocations: 1.152 MB / 409.3 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002433/0.25, allocations: 87.78 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.723e-05/0.2501, allocations: 4.438 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.419e-05/0.2501, allocations: 0.75 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.019e-05/0.2502, allocations: 0 / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.2504, allocations: 26.69 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.114e-05/0.2505, allocations: 23.92 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.407e-05/0.2506, allocations: 8 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.781e-05/0.2506, allocations: 11.88 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.382e-05/0.2507, allocations: 7.984 kB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.2507, allocations: 0 / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.2507, allocations: 0 / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.2507, allocations: 16.8 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.342e-05/0.2508, allocations: 33.64 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.875e-05/0.2508, allocations: 21.19 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2509, allocations: 0 / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2509, allocations: 0 / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.2509, allocations: 3.938 kB / 409.5 MB, free: 26.27 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.000334/0.2512, allocations: 334.3 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.2513, allocations: 9.312 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.2513, allocations: 38.75 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.2513, allocations: 0.9375 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.2515, allocations: 184.2 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.2515, allocations: 6.094 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.2515, allocations: 384 / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.2518, allocations: 122.1 kB / 410.2 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2518, allocations: 6.969 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.2518, allocations: 4 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.2518, allocations: 7.984 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.589e-05/0.2519, allocations: 15.98 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.252, allocations: 153.7 kB / 410.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.2522, allocations: 65.14 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.2522, allocations: 28.92 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.2523, allocations: 0 / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.2523, allocations: 38.56 kB / 410.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.2523, allocations: 0 / 410.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002101/0.2525, allocations: 77.52 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.2526, allocations: 59.41 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.821e-05/0.2526, allocations: 105.8 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.547e-06/0.2526, allocations: 25.7 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.2527, allocations: 88.08 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-06/0.2527, allocations: 0 / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.2527, allocations: 0 / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.898e-05/0.2528, allocations: 322.8 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.2528, allocations: 0 / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.11e-05/0.2528, allocations: 27.44 kB / 411.2 MB, free: 24.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.401e-05/0.2528, allocations: 35.38 kB / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2529, allocations: 0 / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.98e-05/0.2529, allocations: 57.69 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2529, allocations: 7.938 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2529, allocations: 3.938 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.253, allocations: 4 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.194e-05/0.253, allocations: 7.984 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.253, allocations: 7.875 kB / 411.3 MB, free: 24.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.822e-05/0.2531, allocations: 4 kB / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.2531, allocations: 4.25 kB / 411.3 MB, free: 24.21 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.422e-05/0.2531, allocations: 113.8 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.625e-05/0.2532, allocations: 69.59 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.2533, allocations: 11.89 kB / 411.5 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2533, allocations: 0 / 411.5 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2533, allocations: 0 / 411.5 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2533, allocations: 0 / 411.5 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.988e-05/0.2534, allocations: 153.7 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2534, allocations: 0 / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.698e-05/0.2534, allocations: 11.98 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2535, allocations: 7.938 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.2535, allocations: 0 / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.2535, allocations: 3.938 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2535, allocations: 4 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.2536, allocations: 85.42 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.226e-05/0.2536, allocations: 88.95 kB / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.2537, allocations: 11.94 kB / 411.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.491e-05/0.2537, allocations: 4 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-06/0.2537, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.2537, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.587e-05/0.2537, allocations: 83.27 kB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2537, allocations: 0 / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001908/0.2539, allocations: 8 kB / 412 MB, free: 23.45 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: 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 (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.0002982/0.2542, allocations: 0.6241 MB / 412.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001146/0.2544, allocations: 23.98 kB / 412.6 MB, free: 22.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2544, allocations: 3.938 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.2544, allocations: 256 / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.2546, allocations: 34.56 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006046/0.2553, allocations: 414.7 kB / 413.1 MB, free: 22.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.2554, allocations: 0.677 MB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.837e-05/0.2555, allocations: 15.44 kB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2555, allocations: 0 / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.537/2.792, allocations: 0.7801 MB / 414.5 MB, free: 20.79 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,step.height,step.offset,step.simTime,step.startTime,step.y,time