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.001001/0.001001, allocations: 171.9 kB / 16.14 MB, free: 5.629 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.41/1.41, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0007217/0.0007215, allocations: 79.78 kB / 270.6 MB, free: 8.25 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.07299/0.07299, allocations: 12.6 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004253, allocations: 12 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.08432, allocations: 50.37 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.002416/0.08677, allocations: 2.362 MB / 445.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.0883, allocations: 0.9242 MB / 446.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003026/0.08863, allocations: 7.938 kB / 446.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.08888, allocations: 39.59 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.08916, allocations: 47.69 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006223/0.0898, allocations: 215.7 kB / 446.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.09017, allocations: 350.9 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.09046, allocations: 180.6 kB / 447.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.0906, allocations: 103.4 kB / 447.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.09077, allocations: 111.2 kB / 447.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.219e-05/0.09082, allocations: 12 kB / 447.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.09094, allocations: 47.94 kB / 447.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-05/0.09103, allocations: 51.77 kB / 447.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.09114, allocations: 164.7 kB / 447.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.09144, allocations: 350.9 kB / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09145, allocations: 0 / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09146, allocations: 0 / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.09147, allocations: 0 / 448.1 MB, free: 10.37 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.0008688/0.09235, allocations: 0.5963 MB / 448.7 MB, free: 9.723 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.0924, allocations: 8.031 kB / 448.7 MB, free: 9.715 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.345e-05/0.09248, allocations: 70.72 kB / 448.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.09256, allocations: 40.47 kB / 448.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004511/0.09301, allocations: 327.9 kB / 449.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.09306, allocations: 24.94 kB / 449.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.09313, allocations: 28.12 kB / 449.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.09435, allocations: 0.783 MB / 449.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.09438, allocations: 4 kB / 449.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/0.09441, allocations: 8 kB / 449.9 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.09443, allocations: 8 kB / 450 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005054/0.09494, allocations: 243.8 kB / 450.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006555/0.0956, allocations: 0.776 MB / 451 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008901/0.0965, allocations: 0.6466 MB / 451.6 MB, free: 6.531 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.0969, allocations: 291.1 kB / 451.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004807/0.09739, allocations: 0.5896 MB / 452.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.09743, allocations: 42.5 kB / 452.5 MB, free: 5.465 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.375e-06/0.09743, allocations: 4 kB / 452.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001071/0.09851, allocations: 0.5634 MB / 453.1 MB, free: 4.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/0.0986, allocations: 211.9 kB / 453.3 MB, free: 4.641 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.0988, allocations: 246.6 kB / 453.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.09882, allocations: 33.7 kB / 453.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.04e-05/0.0989, allocations: 152.8 kB / 453.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.09895, allocations: 59.47 kB / 453.8 MB, free: 4.145 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.09896, allocations: 4 kB / 453.8 MB, free: 4.141 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.09903, allocations: 350.8 kB / 454.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.0992, allocations: 93.06 kB / 454.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.09947, allocations: 439 kB / 454.7 MB, free: 3.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000464/0.09995, allocations: 0.532 MB / 455.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.09996, allocations: 4 kB / 455.2 MB, free: 2.398 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000656/0.1006, allocations: 0.5014 MB / 455.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1006, allocations: 12 kB / 455.7 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1007, allocations: 12 kB / 455.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.1007, allocations: 12 kB / 455.7 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.101, allocations: 127.7 kB / 455.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.101, allocations: 23.92 kB / 455.9 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.1013, allocations: 59.64 kB / 455.9 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.1013, allocations: 32 kB / 456 MB, free: 1.617 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 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.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.0001495/0.1014, allocations: 197.9 kB / 456.2 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005767/0.102, allocations: 361.9 kB / 456.5 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.1026, allocations: 372.8 kB / 456.9 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1026, allocations: 4 kB / 456.9 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1026, allocations: 0 / 456.9 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1027, allocations: 7.984 kB / 456.9 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002856/0.103, allocations: 333.1 kB / 457.2 MB, free: 304 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.103, allocations: 0 / 457.2 MB, free: 304 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000357/0.1033, allocations: 115.8 kB / 457.3 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.1033, allocations: 4 kB / 457.3 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.1034, allocations: 11.98 kB / 457.3 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1034, allocations: 0 / 457.3 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1034, allocations: 4 kB / 457.3 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.1046, allocations: 0.8175 MB / 458.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-05/0.1047, allocations: 116.6 kB / 458.3 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.1048, allocations: 24.05 kB / 458.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.105, allocations: 31.98 kB / 458.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.1051, allocations: 3.984 kB / 458.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.1051, allocations: 20 kB / 458.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001655/0.1053, allocations: 178 kB / 458.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1053, allocations: 4 kB / 458.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004943/0.1058, allocations: 83.83 kB / 458.6 MB, free: 14.85 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.001664/0.1075, allocations: 1.386 MB / 460 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007337/0.1082, allocations: 373.6 kB / 460.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1082, allocations: 0 / 460.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.1084, allocations: 32.05 kB / 460.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009961/0.1094, allocations: 319.6 kB / 460.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005193/0.1146, allocations: 4.033 MB / 464.7 MB, free: 8.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.1151, allocations: 0.812 MB / 465.6 MB, free: 7.434 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.1152, allocations: 35.28 kB / 465.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.1154, allocations: 115.3 kB / 465.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1154, allocations: 0 / 465.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.1347, allocations: 7.391 MB / 473.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002604/0.135, allocations: 235.9 kB / 473.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.34, allocations: 0 / 473.3 MB, free: 15.62 MB / 330.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)