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.001275/0.001275, allocations: 113.3 kB / 17.06 MB, free: 5.996 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.001339/0.001339, allocations: 196 kB / 18 MB, free: 5.074 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 43.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2716, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002771/0.2744, allocations: 1.584 MB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009084/0.2754, allocations: 496.9 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.968e-05/0.2755, allocations: 4 kB / 402.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.938e-05/0.2755, allocations: 7.875 kB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.2757, allocations: 7.938 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.2759, allocations: 59.8 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.276, allocations: 51.73 kB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.581e-05/0.2762, allocations: 16.16 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.489e-05/0.2762, allocations: 27.92 kB / 402.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.377e-05/0.2763, allocations: 23.84 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.2763, allocations: 4 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.2763, allocations: 4 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.2764, allocations: 19.92 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.2765, allocations: 27.81 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.2766, allocations: 62.62 kB / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2766, allocations: 0 / 402.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.2766, allocations: 4 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2766, allocations: 0 / 402.6 MB, free: 6.402 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.0005129/0.2771, allocations: 379 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2772, allocations: 12.03 kB / 403 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.2772, allocations: 34.75 kB / 403 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.099e-05/0.2773, allocations: 16.88 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.2775, allocations: 200.1 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.2775, allocations: 4.375 kB / 403.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.2776, allocations: 12.31 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.2779, allocations: 129.8 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2779, allocations: 0 / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2779, allocations: 8 kB / 403.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2779, allocations: 0 / 403.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.467e-05/0.278, allocations: 31.91 kB / 403.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003613/0.2784, allocations: 278.6 kB / 403.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.2786, allocations: 160.9 kB / 403.9 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.874e-05/0.2787, allocations: 38.64 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.2787, allocations: 7.984 kB / 403.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.2788, allocations: 38.5 kB / 404 MB, free: 4.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2788, allocations: 0 / 404 MB, free: 4.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002879/0.2791, allocations: 93.55 kB / 404 MB, free: 4.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.209e-05/0.2792, allocations: 110.8 kB / 404.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.2793, allocations: 141.3 kB / 404.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2793, allocations: 25.7 kB / 404.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.2794, allocations: 92.12 kB / 404.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.2794, allocations: 7.953 kB / 404.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.2795, allocations: 21.67 kB / 404.4 MB, free: 4.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2796, allocations: 326.8 kB / 404.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.031e-05/0.2797, allocations: 11.98 kB / 404.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.878e-05/0.2797, allocations: 48.23 kB / 404.8 MB, free: 3.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.2799, allocations: 64.2 kB / 404.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2799, allocations: 7.938 kB / 404.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001649/0.2801, allocations: 89.72 kB / 405 MB, free: 3.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2801, allocations: 4 kB / 405 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2801, allocations: 3.938 kB / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2801, allocations: 4 kB / 405 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.277e-05/0.2802, allocations: 11.98 kB / 405 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2802, allocations: 0 / 405 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.92e-05/0.2803, allocations: 7.953 kB / 405 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.2803, allocations: 12.12 kB / 405 MB, free: 3.68 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 0.0001008/0.2804, allocations: 121.8 kB / 405.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.192e-05/0.2805, allocations: 53.59 kB / 405.2 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.2805, allocations: 16.23 kB / 405.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2805, allocations: 0 / 405.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2805, allocations: 0 / 405.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2805, allocations: 4 kB / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.2807, allocations: 177.5 kB / 405.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2808, allocations: 4 kB / 405.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.233e-05/0.2808, allocations: 16 kB / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2808, allocations: 0 / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.2808, allocations: 0 / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2809, allocations: 4 kB / 405.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2809, allocations: 3.984 kB / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.2811, allocations: 185.1 kB / 405.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.378e-05/0.2812, allocations: 101 kB / 405.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.2812, allocations: 4.062 kB / 405.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.226e-05/0.2813, allocations: 4 kB / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.2813, allocations: 4 kB / 405.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.2813, allocations: 4 kB / 405.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.145e-05/0.2814, allocations: 107.2 kB / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2814, allocations: 0 / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.2816, allocations: 11.94 kB / 405.8 MB, free: 2.762 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.0006097/0.2823, allocations: 0.7497 MB / 406.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001654/0.2824, allocations: 48.16 kB / 406.6 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2824, allocations: 4 kB / 406.6 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.215e-05/0.2825, allocations: 7.984 kB / 406.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.2828, allocations: 37.53 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.2845, allocations: 1.453 MB / 408.1 MB, free: 324 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.2848, allocations: 0.7001 MB / 408.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.2849, allocations: 11.97 kB / 408.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.2849, allocations: 19.44 kB / 408.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2849, allocations: 0 / 408.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.3078, allocations: 1.776 MB / 410.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.156, allocations: 0.625 kB / 410.6 MB, free: 13.93 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 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.csv","/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) "Error: Could not read variable clockToSquareWave.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv. Warning: Get data of variable clockToSquareWave.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv failed! " Variables in the reference:time,sample1.y,clockToSquareWave.y Variables in the result:time,clockToSquareWave.u,sample1.y,sine.y,sine.amplitude,sine.f