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.001366/0.001366, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.001351, allocations: 201.2 kB / 18.74 MB, free: 4.332 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.554/1.554, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001946/0.001946, allocations: 67.88 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3226, allocations: 50.54 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.00434/0.327, allocations: 2.695 MB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.3289, allocations: 0.9465 MB / 412.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.3291, allocations: 11.94 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.3294, allocations: 63.33 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002398/0.3296, allocations: 59.45 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007394/0.3304, allocations: 239.5 kB / 413.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.3309, allocations: 374.9 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.3312, allocations: 196.7 kB / 413.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.3314, allocations: 139.4 kB / 413.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.3316, allocations: 143.2 kB / 413.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.588e-05/0.3316, allocations: 32 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.3318, allocations: 63.97 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.3319, allocations: 91.67 kB / 414.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.3321, allocations: 159.1 kB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005674/0.3327, allocations: 425.1 kB / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3327, allocations: 0 / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3327, allocations: 0 / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3327, allocations: 0 / 414.6 MB, free: 11.78 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001135/0.3338, allocations: 0.6505 MB / 415.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.3339, allocations: 12.03 kB / 415.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.48e-05/0.334, allocations: 62.72 kB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.881e-05/0.3341, allocations: 40.7 kB / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/0.3346, allocations: 336.1 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3347, allocations: 20.94 kB / 415.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.968e-05/0.3347, allocations: 36.12 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.3362, allocations: 0.7326 MB / 416.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.3362, allocations: 3.938 kB / 416.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.3362, allocations: 12 kB / 416.5 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3363, allocations: 7.984 kB / 416.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006219/0.3369, allocations: 223.8 kB / 416.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009584/0.3379, allocations: 0.7683 MB / 417.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.339, allocations: 0.6225 MB / 418.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005126/0.3396, allocations: 263.3 kB / 418.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007583/0.3403, allocations: 0.5932 MB / 419 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.3404, allocations: 42.56 kB / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.625e-06/0.3404, allocations: 0 / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001451/0.3418, allocations: 0.5283 MB / 419.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/0.3421, allocations: 211.9 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/0.3424, allocations: 250.6 kB / 420 MB, free: 5.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.3425, allocations: 33.7 kB / 420.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.3426, allocations: 161 kB / 420.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.3427, allocations: 55.75 kB / 420.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.3428, allocations: 78.27 kB / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.343, allocations: 346.8 kB / 420.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.3432, allocations: 85.06 kB / 420.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005379/0.3438, allocations: 438.9 kB / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.3446, allocations: 0.5281 MB / 421.7 MB, free: 3.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3446, allocations: 4 kB / 421.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009122/0.3455, allocations: 0.493 MB / 422.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3455, allocations: 11.28 kB / 422.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.3455, allocations: 12.84 kB / 422.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/0.3456, allocations: 16 kB / 422.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.3459, allocations: 127.8 kB / 422.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.782e-05/0.346, allocations: 19.94 kB / 422.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.3463, allocations: 51.72 kB / 422.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.3463, allocations: 32 kB / 422.5 MB, free: 3.078 MB / 334.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.0002595/0.3466, allocations: 193.9 kB / 422.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006937/0.3473, allocations: 350.1 kB / 423 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00079/0.3481, allocations: 356.7 kB / 423.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3481, allocations: 8 kB / 423.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3481, allocations: 3.984 kB / 423.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3481, allocations: 4 kB / 423.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.3486, allocations: 337.1 kB / 423.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.3486, allocations: 3.984 kB / 423.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.349, allocations: 99.88 kB / 423.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.349, allocations: 4 kB / 423.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.3491, allocations: 12 kB / 423.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.904e-06/0.3491, allocations: 4 kB / 423.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3491, allocations: 3.938 kB / 423.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.3506, allocations: 0.7747 MB / 424.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3507, allocations: 124.8 kB / 424.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.3508, allocations: 16 kB / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.351, allocations: 28.03 kB / 424.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.3511, allocations: 8 kB / 424.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.3511, allocations: 8 kB / 424.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.3513, allocations: 186 kB / 425 MB, free: 488 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.3513, allocations: 0 / 425 MB, free: 488 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005421/0.3519, allocations: 83.83 kB / 425.1 MB, free: 404 kB / 334.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.001809/0.3537, allocations: 1.34 MB / 426.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.3545, allocations: 359.9 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3545, allocations: 5.75 kB / 426.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.3546, allocations: 27.97 kB / 426.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.3557, allocations: 311.5 kB / 427.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005427/0.3612, allocations: 3.821 MB / 430.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.3617, allocations: 0.812 MB / 431.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.3619, allocations: 43.2 kB / 431.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.3621, allocations: 111.4 kB / 431.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3621, allocations: 0 / 431.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.3999, allocations: 8.067 MB / 439.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.715/9.115, allocations: 0.7969 kB / 439.9 MB, free: 1.234 MB / 350.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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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)