Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 105.2 kB / 17.05 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 39.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2845, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003089/0.2876, allocations: 1.592 MB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.2887, allocations: 489.7 kB / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.2888, allocations: 0 / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.448e-05/0.2888, allocations: 15.81 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.289, allocations: 11.92 kB / 402.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.2893, allocations: 55.81 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.2894, allocations: 51.78 kB / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2896, allocations: 12.19 kB / 402.5 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.926e-05/0.2896, allocations: 23.92 kB / 402.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.2897, allocations: 27.84 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.2897, allocations: 8 kB / 402.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.372e-05/0.2898, allocations: 4 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.567e-05/0.2898, allocations: 15.92 kB / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.2899, allocations: 27.8 kB / 402.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.29, allocations: 63.67 kB / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.29, allocations: 0 / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.29, allocations: 0 / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.29, allocations: 0 / 402.6 MB, free: 6.434 MB / 318.1 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.0005033/0.2906, allocations: 380.9 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2906, allocations: 12.03 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.576e-05/0.2906, allocations: 34.75 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.2907, allocations: 8.844 kB / 403 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.2909, allocations: 204 kB / 403.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.2909, allocations: 8.375 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.291, allocations: 384 / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.2912, allocations: 141.8 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2913, allocations: 0 / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2913, allocations: 3.984 kB / 403.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2913, allocations: 4 kB / 403.4 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.624e-05/0.2914, allocations: 23.92 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003229/0.2917, allocations: 286.5 kB / 403.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.2919, allocations: 153 kB / 403.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.292, allocations: 46.56 kB / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.292, allocations: 0 / 403.9 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2921, allocations: 42.5 kB / 403.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.2921, allocations: 0 / 403.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002826/0.2924, allocations: 93.5 kB / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.2925, allocations: 107.1 kB / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2926, allocations: 146.1 kB / 404.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.2926, allocations: 25.7 kB / 404.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.2927, allocations: 88.14 kB / 404.4 MB, free: 4.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.2927, allocations: 11.84 kB / 404.4 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.2928, allocations: 21.7 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.2929, allocations: 322.8 kB / 404.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.395e-05/0.2929, allocations: 23.92 kB / 404.8 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.427e-05/0.293, allocations: 44.22 kB / 404.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.2931, allocations: 64.22 kB / 404.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2931, allocations: 0 / 404.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001679/0.2933, allocations: 85.52 kB / 405 MB, free: 3.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2933, allocations: 11.94 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2934, allocations: 0 / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.2934, allocations: 4 kB / 405 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.756e-05/0.2935, allocations: 15.92 kB / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2935, allocations: 0 / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.2935, allocations: 8.125 kB / 405 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2935, allocations: 0 / 405 MB, free: 3.723 MB / 318.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.259e-05/0.2936, allocations: 125.8 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.333e-05/0.2937, allocations: 61.53 kB / 405.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.2938, allocations: 12.53 kB / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2938, allocations: 0 / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2938, allocations: 0 / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2938, allocations: 3.984 kB / 405.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.294, allocations: 177.6 kB / 405.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.294, allocations: 12 kB / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.795e-05/0.2941, allocations: 7.984 kB / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2941, allocations: 4 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.2941, allocations: 0 / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.2941, allocations: 0 / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.2941, allocations: 4 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.2943, allocations: 193 kB / 405.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.936e-05/0.2944, allocations: 89 kB / 405.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.2944, allocations: 8 kB / 405.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.443e-05/0.2945, allocations: 3.984 kB / 405.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.2946, allocations: 4 kB / 405.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.2946, allocations: 0 / 405.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.488e-05/0.2946, allocations: 114 kB / 405.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2946, allocations: 0 / 405.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002456/0.2949, allocations: 15.94 kB / 405.8 MB, free: 2.793 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005784/0.2955, allocations: 0.7457 MB / 406.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000159/0.2957, allocations: 43.98 kB / 406.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2957, allocations: 3.938 kB / 406.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.2957, allocations: 15.98 kB / 406.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.2961, allocations: 38.27 kB / 406.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.2976, allocations: 1.455 MB / 408.1 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2979, allocations: 0.7052 MB / 408.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.804e-05/0.2979, allocations: 0 / 408.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.298, allocations: 15.44 kB / 408.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.298, allocations: 0 / 408.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.3187, allocations: 1.811 MB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.489/8.808, allocations: 3.375 kB / 410.6 MB, free: 13.94 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches