Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001772/0.001773, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002067/0.002067, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.514/1.514, allocations: 227.7 MB / 247.1 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 68.44 kB / 307.3 MB, free: 416 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1536, allocations: 50.53 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005471/0.1592, allocations: 2.682 MB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.1612, allocations: 0.9466 MB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.1615, allocations: 7.938 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.1618, allocations: 67.27 kB / 361.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.1621, allocations: 71.44 kB / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009057/0.163, allocations: 230.9 kB / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005685/0.1636, allocations: 378.9 kB / 362.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004401/0.164, allocations: 196.7 kB / 362.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.1642, allocations: 139.4 kB / 362.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1645, allocations: 143.3 kB / 362.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.322e-05/0.1645, allocations: 35.98 kB / 362.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.1647, allocations: 71.95 kB / 362.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1648, allocations: 79.7 kB / 362.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001964/0.165, allocations: 163.1 kB / 363 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005978/0.1657, allocations: 402.9 kB / 363.4 MB, free: 8.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1657, allocations: 0 / 363.4 MB, free: 8.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1657, allocations: 0 / 363.4 MB, free: 8.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.1657, allocations: 0 / 363.4 MB, free: 8.258 MB / 302.1 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.001374/0.1671, allocations: 0.6391 MB / 364.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.1671, allocations: 8.031 kB / 364.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.1673, allocations: 66.72 kB / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.969e-05/0.1674, allocations: 40.47 kB / 364.2 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.1679, allocations: 327.9 kB / 364.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.1679, allocations: 16.94 kB / 364.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.239e-05/0.168, allocations: 40.12 kB / 364.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1695, allocations: 0.7363 MB / 365.3 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1696, allocations: 4 kB / 365.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.1696, allocations: 12 kB / 365.3 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1696, allocations: 8 kB / 365.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005952/0.1702, allocations: 219.7 kB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1715, allocations: 0.7722 MB / 366.3 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.1728, allocations: 0.6222 MB / 366.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005642/0.1734, allocations: 267.3 kB / 367.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009893/0.1744, allocations: 0.5895 MB / 367.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/0.1744, allocations: 50.27 kB / 367.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.865e-06/0.1745, allocations: 4 kB / 367.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00145/0.1759, allocations: 0.5133 MB / 368.4 MB, free: 2.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002084/0.1761, allocations: 216 kB / 368.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.1765, allocations: 246.6 kB / 368.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.1766, allocations: 37.7 kB / 368.8 MB, free: 2.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.1767, allocations: 156.6 kB / 369 MB, free: 2.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.893e-05/0.1768, allocations: 47.58 kB / 369 MB, free: 2.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1769, allocations: 82.25 kB / 369.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.1772, allocations: 342.8 kB / 369.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.1774, allocations: 89.06 kB / 369.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005983/0.178, allocations: 438.9 kB / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/0.1789, allocations: 0.5242 MB / 370.5 MB, free: 356 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.1789, allocations: 4 kB / 370.5 MB, free: 352 kB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.2495/0.4283, allocations: 495.3 kB / 371 MB, free: 19.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.4284, allocations: 14.86 kB / 371 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.4285, allocations: 11.88 kB / 371 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.34e-05/0.4285, allocations: 15.81 kB / 371 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.4289, allocations: 121 kB / 371.1 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.171e-05/0.4289, allocations: 28.06 kB / 371.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004469/0.4294, allocations: 50.05 kB / 371.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.4295, allocations: 31.28 kB / 371.2 MB, free: 19.7 MB / 302.1 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.0002602/0.4297, allocations: 190.3 kB / 371.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000732/0.4305, allocations: 345.9 kB / 371.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007466/0.4312, allocations: 353.2 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.4312, allocations: 12.84 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4313, allocations: 2.109 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.4313, allocations: 4.188 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.4317, allocations: 345.1 kB / 372.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4317, allocations: 1.969 kB / 372.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/0.4321, allocations: 101.1 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.4322, allocations: 1.875 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.4322, allocations: 11.7 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.4322, allocations: 5.766 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4322, allocations: 2.094 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.4335, allocations: 0.7798 MB / 373.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.919e-05/0.4336, allocations: 117.9 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.4336, allocations: 17.81 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.4339, allocations: 22.39 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.434, allocations: 11.72 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.434, allocations: 14.73 kB / 373.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.4342, allocations: 184.3 kB / 373.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4342, allocations: 0.5312 kB / 373.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005933/0.4348, allocations: 77.84 kB / 373.8 MB, free: 18.88 MB / 302.1 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.001399/0.4362, allocations: 1.341 MB / 375.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008628/0.4371, allocations: 386 kB / 375.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4371, allocations: 2.094 kB / 375.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.4372, allocations: 34.08 kB / 375.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009842/0.4382, allocations: 297.1 kB / 375.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.4424, allocations: 3.849 MB / 379.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4427, allocations: 0.8099 MB / 380.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.4428, allocations: 37.81 kB / 380.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.443, allocations: 111 kB / 380.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.443, allocations: 5.25 kB / 380.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.4784, allocations: 7.926 MB / 388.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.415/8.893, allocations: 7.984 kB / 388.6 MB, free: 11.81 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1)