Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 177.7 kB / 16.11 MB, free: 5.27 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205 MB / 221.9 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00074/0.00074, allocations: 96.48 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0712/0.0712, allocations: 12.57 MB / 330.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 12 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09316, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.002395/0.09559, allocations: 2.397 MB / 443.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.09694, allocations: 0.932 MB / 444.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.09715, allocations: 11.94 kB / 444.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.09736, allocations: 43.58 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.09758, allocations: 47.64 kB / 444.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.09817, allocations: 219.6 kB / 444.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.09844, allocations: 354.9 kB / 445.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.09869, allocations: 180.6 kB / 445.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.0988, allocations: 103.3 kB / 445.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.09894, allocations: 119.3 kB / 445.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.09898, allocations: 8 kB / 445.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.283e-05/0.09908, allocations: 39.97 kB / 445.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.837e-05/0.09916, allocations: 55.7 kB / 445.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.522e-05/0.09926, allocations: 131.1 kB / 445.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.09955, allocations: 354.9 kB / 446.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.09957, allocations: 0 / 446.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.09957, allocations: 0 / 446.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.09959, allocations: 0 / 446.1 MB, free: 11.3 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008528/0.1004, allocations: 0.5924 MB / 446.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1005, allocations: 15.97 kB / 446.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.235e-05/0.1005, allocations: 66.72 kB / 446.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.1006, allocations: 40.47 kB / 446.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1009, allocations: 320 kB / 447.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.1009, allocations: 32.86 kB / 447.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.101, allocations: 32.12 kB / 447.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.1021, allocations: 0.7791 MB / 448 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.1021, allocations: 0 / 448 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.1022, allocations: 12 kB / 448 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1022, allocations: 8 kB / 448 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.1027, allocations: 247.8 kB / 448.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006425/0.1033, allocations: 0.772 MB / 449 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008821/0.1042, allocations: 0.6506 MB / 449.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003769/0.1046, allocations: 283.1 kB / 449.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000468/0.1051, allocations: 0.5895 MB / 450.5 MB, free: 6.457 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.1051, allocations: 50.55 kB / 450.6 MB, free: 6.398 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.813e-06/0.1051, allocations: 0 / 450.6 MB, free: 6.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001013/0.1061, allocations: 0.5635 MB / 451.1 MB, free: 5.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.1062, allocations: 211.8 kB / 451.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.1064, allocations: 250.6 kB / 451.6 MB, free: 5.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.1064, allocations: 37.7 kB / 451.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.336e-05/0.1065, allocations: 152.8 kB / 451.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.1066, allocations: 47.53 kB / 451.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/0.1066, allocations: 45.7 kB / 451.8 MB, free: 5.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.341e-05/0.1067, allocations: 346.8 kB / 452.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.1069, allocations: 93 kB / 452.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.1072, allocations: 443 kB / 452.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/0.1076, allocations: 0.5398 MB / 453.3 MB, free: 3.289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1076, allocations: 4 kB / 453.3 MB, free: 3.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006014/0.1082, allocations: 0.4931 MB / 453.7 MB, free: 2.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1083, allocations: 14.97 kB / 453.8 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.1083, allocations: 12 kB / 453.8 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.1083, allocations: 16 kB / 453.8 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.1086, allocations: 120.4 kB / 453.9 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.1086, allocations: 31.86 kB / 453.9 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.1088, allocations: 51.59 kB / 454 MB, free: 2.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.1089, allocations: 35.94 kB / 454 MB, free: 2.512 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001545/0.109, allocations: 190.4 kB / 454.2 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005334/0.1096, allocations: 365.9 kB / 454.6 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006043/0.1102, allocations: 372.7 kB / 454.9 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1102, allocations: 4 kB / 454.9 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1102, allocations: 4 kB / 454.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1102, allocations: 0 / 454.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.1105, allocations: 337.1 kB / 455.3 MB, free: 1.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.1105, allocations: 8 kB / 455.3 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000335/0.1109, allocations: 103.9 kB / 455.4 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1109, allocations: 4.469 kB / 455.4 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.1109, allocations: 8 kB / 455.4 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1109, allocations: 4 kB / 455.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1109, allocations: 0 / 455.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.1119, allocations: 0.8253 MB / 456.2 MB, free: 224 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.112, allocations: 124.6 kB / 456.3 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.1121, allocations: 12 kB / 456.4 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.1123, allocations: 35.97 kB / 456.4 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.1123, allocations: 8.062 kB / 456.4 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.1124, allocations: 15.98 kB / 456.4 MB, free: 8 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001746/0.1126, allocations: 178 kB / 456.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1126, allocations: 0 / 456.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004813/0.1131, allocations: 83.84 kB / 456.7 MB, free: 15.75 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001665/0.1147, allocations: 1.386 MB / 458.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007807/0.1155, allocations: 373.6 kB / 458.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1155, allocations: 4.062 kB / 458.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1156, allocations: 39.91 kB / 458.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.1168, allocations: 308.2 kB / 458.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/0.1218, allocations: 3.984 MB / 462.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.1223, allocations: 0.812 MB / 463.6 MB, free: 8.387 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.1225, allocations: 35.28 kB / 463.6 MB, free: 8.352 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.1227, allocations: 115.4 kB / 463.7 MB, free: 8.242 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1227, allocations: 4 kB / 463.7 MB, free: 8.238 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.1432, allocations: 7.388 MB / 471.1 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/0.1435, allocations: 228.1 kB / 471.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.19/2.334, allocations: 4 kB / 471.3 MB, free: 0.5781 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)