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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002261/0.002261, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 51.92 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08619/0.0876, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002486/0.09008, allocations: 1.612 MB / 419.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000739/0.09082, allocations: 0.4948 MB / 419.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.874e-05/0.09088, allocations: 4 kB / 419.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.199e-05/0.09092, allocations: 7.922 kB / 419.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.09103, allocations: 11.88 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/0.09126, allocations: 47.83 kB / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.873e-05/0.09136, allocations: 51.84 kB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.555e-05/0.09144, allocations: 12.17 kB / 420 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.506e-05/0.0915, allocations: 23.86 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.639e-05/0.09156, allocations: 23.86 kB / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.09157, allocations: 4 kB / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.09158, allocations: 8 kB / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.485e-05/0.09163, allocations: 19.91 kB / 420.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.791e-05/0.09167, allocations: 27.8 kB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.09177, allocations: 63.67 kB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.09177, allocations: 0 / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09177, allocations: 0 / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.09178, allocations: 0 / 420.2 MB, free: 10.2 MB / 350.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.0004474/0.09223, allocations: 391 kB / 420.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.09226, allocations: 12.03 kB / 420.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.09229, allocations: 30.75 kB / 420.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.333e-05/0.09231, allocations: 12.89 kB / 420.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.09252, allocations: 198.3 kB / 420.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.09253, allocations: 4.375 kB / 420.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.09255, allocations: 4.375 kB / 420.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.0928, allocations: 133.8 kB / 421 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.09281, allocations: 3.938 kB / 421 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.09282, allocations: 4 kB / 421 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.09282, allocations: 4 kB / 421 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.608e-05/0.0929, allocations: 19.98 kB / 421 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003064/0.09321, allocations: 294.4 kB / 421.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.09341, allocations: 152.8 kB / 421.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.96e-05/0.09348, allocations: 38.69 kB / 421.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.0935, allocations: 7.938 kB / 421.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.09352, allocations: 34.56 kB / 421.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.09352, allocations: 0 / 421.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002491/0.09377, allocations: 101.5 kB / 421.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.09385, allocations: 115.1 kB / 421.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.09396, allocations: 138.1 kB / 421.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.09397, allocations: 25.7 kB / 421.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.09402, allocations: 88.14 kB / 422 MB, free: 8.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.09404, allocations: 11.94 kB / 422 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.09407, allocations: 25.67 kB / 422 MB, free: 8.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.0942, allocations: 318.8 kB / 422.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.774e-05/0.09424, allocations: 11.98 kB / 422.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.381e-05/0.09431, allocations: 48.28 kB / 422.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.09441, allocations: 64.22 kB / 422.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.09441, allocations: 4 kB / 422.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001548/0.09457, allocations: 85.53 kB / 422.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.09458, allocations: 4 kB / 422.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.09458, allocations: 4 kB / 422.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.09459, allocations: 0 / 422.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.781e-05/0.09466, allocations: 11.94 kB / 422.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.09467, allocations: 0 / 422.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.094e-05/0.09472, allocations: 20.06 kB / 422.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.09473, allocations: 8 kB / 422.6 MB, free: 7.48 MB / 350.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 8.322e-05/0.09481, allocations: 121.7 kB / 422.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.497e-05/0.09489, allocations: 53.64 kB / 422.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.09492, allocations: 12.25 kB / 422.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.09492, allocations: 0 / 422.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.09493, allocations: 4 kB / 422.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.09493, allocations: 3.984 kB / 422.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.09511, allocations: 181.5 kB / 422.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09511, allocations: 0 / 422.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.09517, allocations: 15.98 kB / 422.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.09517, allocations: 0 / 422.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.09518, allocations: 7.938 kB / 423 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.09518, allocations: 0 / 423 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.09518, allocations: 0 / 423 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.09537, allocations: 189.1 kB / 423.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.883e-05/0.09544, allocations: 97.05 kB / 423.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.09545, allocations: 3.938 kB / 423.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.149e-05/0.09552, allocations: 11.98 kB / 423.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.395e-05/0.09555, allocations: 0 / 423.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.09555, allocations: 4 kB / 423.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.978e-05/0.09562, allocations: 109.5 kB / 423.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09562, allocations: 0 / 423.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.09584, allocations: 11.94 kB / 423.4 MB, free: 6.559 MB / 350.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.0005332/0.09638, allocations: 0.7538 MB / 424.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001371/0.09651, allocations: 48.09 kB / 424.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.09651, allocations: 4 kB / 424.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.568e-05/0.09655, allocations: 4 kB / 424.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.09685, allocations: 28.02 kB / 424.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.09816, allocations: 1.459 MB / 425.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.09846, allocations: 0.6961 MB / 426.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.766e-05/0.09849, allocations: 4.125 kB / 426.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.09853, allocations: 23.42 kB / 426.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.09853, allocations: 0 / 426.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1251/0.2237, allocations: 1.787 MB / 428.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/8.971, allocations: 16.08 kB / 428.2 MB, free: 1.711 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=1.79641e-05 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.644384993240237]