Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001496, allocations: 191.8 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008978/0.0008977, allocations: 92.56 kB / 296.7 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002794, allocations: 4 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2657, allocations: 51.29 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001789/0.2676, allocations: 1.302 MB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008958/0.2685, allocations: 0.4923 MB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.2687, allocations: 6.031 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.597e-05/0.2688, allocations: 0 / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.2689, allocations: 7.938 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.2693, allocations: 43.89 kB / 410 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.7e-05/0.2694, allocations: 47.8 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.2695, allocations: 23.19 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.2697, allocations: 23.91 kB / 410.1 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.92e-05/0.2698, allocations: 19.88 kB / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.2698, allocations: 0 / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.637e-05/0.2699, allocations: 11.98 kB / 410.1 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.336e-05/0.2699, allocations: 4 kB / 410.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.198e-05/0.27, allocations: 62.14 kB / 410.2 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.344e-05/0.2701, allocations: 39.92 kB / 410.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.2701, allocations: 0.5 kB / 410.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2701, allocations: 2.25 kB / 410.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.2701, allocations: 3.938 kB / 410.2 MB, free: 25.64 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005067/0.2706, allocations: 364.5 kB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.817e-05/0.2707, allocations: 15.97 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.2707, allocations: 37.91 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.2709, allocations: 20.83 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.2711, allocations: 202.5 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.2711, allocations: 384 / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.2711, allocations: 8.375 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.2714, allocations: 137.8 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.2714, allocations: 3.938 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2714, allocations: 0 / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2714, allocations: 4 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.2716, allocations: 31.98 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003552/0.2719, allocations: 278.6 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.2721, allocations: 164.9 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.478e-05/0.2722, allocations: 38.62 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.2722, allocations: 4 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.2723, allocations: 34.56 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.2723, allocations: 0 / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003198/0.2726, allocations: 105.4 kB / 411.6 MB, free: 23.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.2727, allocations: 106.8 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.329e-05/0.2728, allocations: 146.4 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.446e-06/0.2728, allocations: 25.7 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.2728, allocations: 88.08 kB / 412 MB, free: 23.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.2729, allocations: 15.89 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.2729, allocations: 0 / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.475e-05/0.2729, allocations: 322.8 kB / 412.3 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.995e-05/0.273, allocations: 12 kB / 412.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/0.273, allocations: 48.28 kB / 412.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.805e-05/0.2732, allocations: 72.39 kB / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2732, allocations: 0 / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001416/0.2733, allocations: 93.44 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2733, allocations: 11.94 kB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2733, allocations: 0 / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2734, allocations: 4 kB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.727e-05/0.2734, allocations: 16.11 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2735, allocations: 7.938 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.429e-05/0.2735, allocations: 8 kB / 412.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.2736, allocations: 4 kB / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.473e-05/0.2736, allocations: 125.7 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.2738, allocations: 49.59 kB / 412.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.2738, allocations: 16.23 kB / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2738, allocations: 0 / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2738, allocations: 4 kB / 412.8 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2738, allocations: 4 kB / 412.8 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.274, allocations: 177.6 kB / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.274, allocations: 3.984 kB / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.413e-05/0.274, allocations: 11.94 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.274, allocations: 0 / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.2741, allocations: 4 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2741, allocations: 0 / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.2741, allocations: 0 / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.2742, allocations: 193.1 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.2743, allocations: 96.98 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.2743, allocations: 3.938 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.905e-05/0.2744, allocations: 8 kB / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.2744, allocations: 4 kB / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.2744, allocations: 4 kB / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.993e-05/0.2745, allocations: 110.2 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.2745, allocations: 0 / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002593/0.2748, allocations: 11.94 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0003946/0.2752, allocations: 0.753 MB / 414.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.2753, allocations: 51.91 kB / 414.2 MB, free: 21.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2753, allocations: 320 / 414.2 MB, free: 21.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.917e-05/0.2754, allocations: 12 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.2758, allocations: 31.52 kB / 414.2 MB, free: 21.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007435/0.2765, allocations: 0.6072 MB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.2768, allocations: 0.6965 MB / 415.6 MB, free: 19.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.228e-05/0.2768, allocations: 15.44 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2768, allocations: 4 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.588/2.865, allocations: 1.089 MB / 416.7 MB, free: 18.61 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:clockToSquareWave.u,clockToSquareWave.uu,clockToSquareWave.y,clockToSquareWave.y2,clockToSquareWave.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(clockToSquareWave.y2),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time