Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, 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.0009035/0.0009035, allocations: 103 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002466, allocations: 15.92 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2505, allocations: 51.3 MB / 408.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.001124/0.2517, allocations: 0.6457 MB / 408.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002642/0.252, allocations: 111.7 kB / 408.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.444e-05/0.2521, allocations: 3.938 kB / 408.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.2521, allocations: 4 kB / 408.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2522, allocations: 7.922 kB / 408.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.2525, allocations: 35.91 kB / 408.9 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.061e-05/0.2526, allocations: 35.92 kB / 409 MB, free: 26.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2527, allocations: 26.16 kB / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.532e-05/0.2527, allocations: 11.88 kB / 409 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.492e-05/0.2528, allocations: 19.86 kB / 409 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.2528, allocations: 1.75 kB / 409 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.2528, allocations: 0 / 409 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.384e-05/0.2528, allocations: 11.94 kB / 409 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.723e-05/0.2529, allocations: 45.56 kB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.528e-05/0.2529, allocations: 35.92 kB / 409.1 MB, free: 26.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.253, allocations: 0.9375 kB / 409.1 MB, free: 26.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.253, allocations: 3.938 kB / 409.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.253, allocations: 0.8125 kB / 409.1 MB, free: 26.55 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003319/0.2533, allocations: 361.2 kB / 409.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2534, allocations: 12.03 kB / 409.5 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.2534, allocations: 36.97 kB / 409.5 MB, free: 26.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.2534, allocations: 12.75 kB / 409.5 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.2536, allocations: 188.2 kB / 409.7 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.2536, allocations: 4.375 kB / 409.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.2536, allocations: 4.375 kB / 409.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.2538, allocations: 140.8 kB / 409.9 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.2539, allocations: 0 / 409.9 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.2539, allocations: 3.406 kB / 409.9 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2539, allocations: 0 / 409.9 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.852e-05/0.2539, allocations: 23.98 kB / 409.9 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001042/0.254, allocations: 169.6 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.2541, allocations: 70.69 kB / 410.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.79e-05/0.2542, allocations: 31.14 kB / 410.2 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.2542, allocations: 0 / 410.2 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.2542, allocations: 42.48 kB / 410.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.22e-07/0.2542, allocations: 0 / 410.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001633/0.2544, allocations: 85.83 kB / 410.3 MB, free: 25.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.2545, allocations: 63.34 kB / 410.4 MB, free: 25.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.51e-05/0.2546, allocations: 132.6 kB / 410.5 MB, free: 25.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-06/0.2546, allocations: 29.7 kB / 410.5 MB, free: 24.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.438e-05/0.2546, allocations: 84.14 kB / 410.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.2546, allocations: 3.984 kB / 410.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.2546, allocations: 4 kB / 410.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.2547, allocations: 314.8 kB / 410.9 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.657e-05/0.2547, allocations: 15.98 kB / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.087e-05/0.2548, allocations: 50.95 kB / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.412e-05/0.2548, allocations: 78.73 kB / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2548, allocations: 0 / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.674e-05/0.2549, allocations: 97.44 kB / 411.1 MB, free: 24.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2549, allocations: 4 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.255, allocations: 11.92 kB / 411.2 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.255, allocations: 4 kB / 411.2 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.672e-05/0.2551, allocations: 20.17 kB / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2551, allocations: 0 / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.939e-05/0.2551, allocations: 11.88 kB / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.2551, allocations: 8 kB / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.002e-05/0.2552, allocations: 125.9 kB / 411.3 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.851e-05/0.2553, allocations: 77.67 kB / 411.4 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.2553, allocations: 16.7 kB / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2553, allocations: 0 / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2553, allocations: 0 / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2553, allocations: 0 / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.83e-05/0.2554, allocations: 169.6 kB / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2554, allocations: 4 kB / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.866e-05/0.2555, allocations: 19.86 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2555, allocations: 0 / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.2555, allocations: 4 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2555, allocations: 4 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2555, allocations: 0 / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.815e-05/0.2556, allocations: 97.03 kB / 411.7 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.2556, allocations: 100.9 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.2556, allocations: 3.984 kB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.758e-05/0.2557, allocations: 4 kB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-06/0.2557, allocations: 0 / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.2557, allocations: 4 kB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.591e-05/0.2557, allocations: 107.2 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2557, allocations: 0 / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001781/0.2559, allocations: 12 kB / 411.9 MB, free: 23.38 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: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0003062/0.2562, allocations: 0.6553 MB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.979e-05/0.2563, allocations: 47.98 kB / 412.6 MB, free: 22.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.2564, allocations: 0 / 412.6 MB, free: 22.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.2564, allocations: 3.938 kB / 412.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.2567, allocations: 40.75 kB / 412.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/0.2572, allocations: 0.5497 MB / 413.2 MB, free: 21.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.2574, allocations: 0.6965 MB / 413.9 MB, free: 21.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.607e-05/0.2574, allocations: 19.42 kB / 414 MB, free: 21.24 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2574, allocations: 0 / 414 MB, free: 21.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.513/2.77, allocations: 1.033 MB / 415 MB, free: 20.21 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClock/AssignClock.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,assignClock1.u,assignClock1.y,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start