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.001341/0.001341, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.001867/0.001867, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.395/1.395, allocations: 222.9 MB / 246.4 MB, free: 4.188 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.00149/0.00149, allocations: 47.91 kB / 357.5 MB, free: 8.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09823, allocations: 49.44 MB / 406.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002716/0.101, allocations: 1.59 MB / 408.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008667/0.1019, allocations: 0.4908 MB / 409 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.432e-05/0.102, allocations: 3.938 kB / 409 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.475e-05/0.102, allocations: 15.86 kB / 409 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.1021, allocations: 3.938 kB / 409 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.1024, allocations: 51.83 kB / 409.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.1025, allocations: 51.84 kB / 409.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.1027, allocations: 16.17 kB / 409.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.956e-05/0.1027, allocations: 23.86 kB / 409.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.024e-05/0.1028, allocations: 19.92 kB / 409.2 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.1028, allocations: 4 kB / 409.2 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.498e-05/0.1028, allocations: 4 kB / 409.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.5e-05/0.1029, allocations: 15.92 kB / 409.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.546e-05/0.103, allocations: 35.72 kB / 409.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.1031, allocations: 64.02 kB / 409.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1031, allocations: 0 / 409.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1031, allocations: 3.938 kB / 409.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.1031, allocations: 0 / 409.3 MB, free: 4.922 MB / 334.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.0005235/0.1037, allocations: 391 kB / 409.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1037, allocations: 12.03 kB / 409.7 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.566e-05/0.1037, allocations: 30.75 kB / 409.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.1038, allocations: 12.89 kB / 409.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.104, allocations: 200.2 kB / 410 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.1041, allocations: 4.375 kB / 410 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1041, allocations: 4.375 kB / 410 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.1044, allocations: 137.8 kB / 410.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1044, allocations: 7.984 kB / 410.1 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.1044, allocations: 0 / 410.1 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1044, allocations: 4 kB / 410.1 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.863e-05/0.1045, allocations: 19.98 kB / 410.1 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003598/0.1049, allocations: 286.5 kB / 410.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.1052, allocations: 160.9 kB / 410.6 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.802e-05/0.1052, allocations: 38.56 kB / 410.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.1053, allocations: 0 / 410.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1053, allocations: 42.55 kB / 410.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.72e-07/0.1053, allocations: 0 / 410.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002957/0.1056, allocations: 97.48 kB / 410.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.1057, allocations: 106.8 kB / 410.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.1058, allocations: 145.1 kB / 411 MB, free: 2.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1059, allocations: 29.89 kB / 411 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.1059, allocations: 88.14 kB / 411.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.106, allocations: 11.95 kB / 411.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.106, allocations: 25.66 kB / 411.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1062, allocations: 322.8 kB / 411.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.892e-05/0.1062, allocations: 11.98 kB / 411.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.97e-05/0.1063, allocations: 48.28 kB / 411.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1064, allocations: 64.16 kB / 411.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1064, allocations: 0 / 411.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000164/0.1066, allocations: 81.61 kB / 411.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1066, allocations: 8 kB / 411.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1066, allocations: 3.984 kB / 411.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1067, allocations: 4 kB / 411.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.579e-05/0.1067, allocations: 15.94 kB / 411.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1067, allocations: 0 / 411.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.246e-05/0.1068, allocations: 11.89 kB / 411.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1068, allocations: 3.984 kB / 411.7 MB, free: 2.203 MB / 334.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.0001024/0.1069, allocations: 125.9 kB / 411.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.54e-05/0.107, allocations: 57.58 kB / 411.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.1071, allocations: 12.53 kB / 411.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1071, allocations: 0 / 411.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.1071, allocations: 3.984 kB / 411.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1071, allocations: 0 / 411.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.1073, allocations: 181.6 kB / 412.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1073, allocations: 4 kB / 412.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.436e-05/0.1074, allocations: 7.984 kB / 412.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1074, allocations: 4 kB / 412.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.1074, allocations: 4 kB / 412.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1074, allocations: 0 / 412.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.1074, allocations: 8 kB / 412.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.1076, allocations: 193 kB / 412.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.1077, allocations: 89.05 kB / 412.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.1077, allocations: 8 kB / 412.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.994e-05/0.1078, allocations: 7.984 kB / 412.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.879e-05/0.1079, allocations: 4 kB / 412.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.1079, allocations: 0 / 412.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.88e-05/0.1079, allocations: 117.6 kB / 412.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.108, allocations: 0 / 412.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.1082, allocations: 11.94 kB / 412.5 MB, free: 1.27 MB / 334.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.0006018/0.1088, allocations: 0.7497 MB / 413.3 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.109, allocations: 43.91 kB / 413.3 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.109, allocations: 0 / 413.3 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.449e-05/0.109, allocations: 16.31 kB / 413.3 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.1094, allocations: 31.7 kB / 413.4 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1108, allocations: 1.454 MB / 414.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.1112, allocations: 0.7039 MB / 415.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.252e-05/0.1112, allocations: 8 kB / 415.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.1113, allocations: 19.42 kB / 415.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1113, allocations: 0 / 415.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.1324, allocations: 1.77 MB / 417.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.848, allocations: 15.33 kB / 417.3 MB, free: 12.43 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.317106890957803]