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.001561/0.001561, allocations: 111.8 kB / 17.06 MB, free: 6.016 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.001683/0.001683, allocations: 191 kB / 18 MB, free: 5.098 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.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2649, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002611/0.2676, allocations: 1.583 MB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007795/0.2684, allocations: 493.1 kB / 402.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.231e-05/0.2685, allocations: 7.938 kB / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.27e-05/0.2685, allocations: 3.938 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.2687, allocations: 15.91 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.2689, allocations: 55.77 kB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.913e-05/0.269, allocations: 47.84 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.2691, allocations: 12.19 kB / 402.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.6e-05/0.2692, allocations: 31.84 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.85e-05/0.2693, allocations: 23.86 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.2693, allocations: 4 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.2693, allocations: 4 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.088e-05/0.2694, allocations: 11.98 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.2694, allocations: 35.69 kB / 402.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.2695, allocations: 58.73 kB / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2696, allocations: 0 / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2696, allocations: 0 / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.2696, allocations: 0 / 402.6 MB, free: 6.449 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.0004388/0.27, allocations: 391 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2701, allocations: 8.031 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.172e-05/0.2701, allocations: 42.67 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.2701, allocations: 16.89 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.2703, allocations: 200.1 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.2703, allocations: 4.375 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.2704, allocations: 4.375 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2706, allocations: 133.8 kB / 403.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.2707, allocations: 4 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.2707, allocations: 0 / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2707, allocations: 0 / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.742e-05/0.2708, allocations: 31.91 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002969/0.2711, allocations: 282.6 kB / 403.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.2713, allocations: 160.9 kB / 403.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.946e-05/0.2714, allocations: 38.62 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.2714, allocations: 0 / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.2714, allocations: 42.5 kB / 403.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.2714, allocations: 3.938 kB / 404 MB, free: 4.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002634/0.2717, allocations: 97.55 kB / 404 MB, free: 4.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.2717, allocations: 106.8 kB / 404.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.2719, allocations: 140.7 kB / 404.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.2719, allocations: 29.7 kB / 404.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.038e-05/0.2719, allocations: 88.14 kB / 404.4 MB, free: 4.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.2719, allocations: 3.953 kB / 404.4 MB, free: 4.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/0.272, allocations: 29.91 kB / 404.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.6e-05/0.2721, allocations: 322.8 kB / 404.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.459e-05/0.2721, allocations: 19.92 kB / 404.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.47e-05/0.2722, allocations: 52.25 kB / 404.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.2723, allocations: 64.22 kB / 404.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2723, allocations: 0 / 404.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001515/0.2725, allocations: 85.55 kB / 405 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.2725, allocations: 4 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2725, allocations: 4 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.2725, allocations: 4.125 kB / 405 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.206e-05/0.2726, allocations: 11.98 kB / 405 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.2726, allocations: 0 / 405 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.924e-05/0.2727, allocations: 7.953 kB / 405 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.2727, allocations: 4 kB / 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 7.732e-05/0.2728, allocations: 125.8 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.2729, allocations: 57.58 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.329e-05/0.2729, allocations: 16.19 kB / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2729, allocations: 0 / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2729, allocations: 8 kB / 405.2 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.2729, allocations: 288 / 405.2 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.2731, allocations: 181.5 kB / 405.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2731, allocations: 0 / 405.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.2732, allocations: 11.98 kB / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2732, allocations: 3.984 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.2732, allocations: 4 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.2732, allocations: 4 kB / 405.4 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2732, allocations: 0 / 405.4 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.2734, allocations: 193.1 kB / 405.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.44e-05/0.2735, allocations: 97.05 kB / 405.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.2735, allocations: 3.938 kB / 405.7 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.385e-05/0.2736, allocations: 4 kB / 405.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.2736, allocations: 3.984 kB / 405.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.2736, allocations: 4 kB / 405.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.42e-05/0.2737, allocations: 110.4 kB / 405.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2737, allocations: 0 / 405.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.2739, allocations: 15.94 kB / 405.8 MB, free: 2.785 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.0004851/0.2744, allocations: 0.7536 MB / 406.6 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.2746, allocations: 43.92 kB / 406.6 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2746, allocations: 0 / 406.6 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.544e-05/0.2746, allocations: 15.92 kB / 406.6 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.275, allocations: 24.02 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.00121/0.2762, allocations: 1.451 MB / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.2764, allocations: 0.6961 MB / 408.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.22e-05/0.2765, allocations: 4 kB / 408.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.461e-05/0.2765, allocations: 23.06 kB / 408.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2765, allocations: 0 / 408.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.2919, allocations: 1.785 MB / 410.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.801, allocations: 3.062 kB / 410.6 MB, free: 13.96 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