Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",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.0009167/0.0009167, allocations: 170.3 kB / 16.14 MB, free: 5.656 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.498/1.498, allocations: 205.4 MB / 222.3 MB, free: 9 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.0007956/0.0007956, allocations: 92.98 kB / 270.7 MB, free: 8.238 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.08457/0.08457, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004021/0.0004022, allocations: 8 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1013, allocations: 50.36 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002949/0.1043, allocations: 2.341 MB / 445.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1061, allocations: 0.9126 MB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003118/0.1064, allocations: 11.94 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.1067, allocations: 47.58 kB / 446.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002924/0.107, allocations: 47.64 kB / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007115/0.1077, allocations: 211.7 kB / 446.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.1081, allocations: 350.9 kB / 447 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003486/0.1085, allocations: 184.6 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1087, allocations: 103.4 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.1088, allocations: 115.2 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.1089, allocations: 8 kB / 447.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.109, allocations: 47.95 kB / 447.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.87e-05/0.1091, allocations: 55.7 kB / 447.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.1092, allocations: 152.8 kB / 447.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.1095, allocations: 354.8 kB / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1096, allocations: 0 / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1096, allocations: 0 / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1096, allocations: 0 / 448 MB, free: 10.39 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.0009417/0.1105, allocations: 0.5963 MB / 448.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1106, allocations: 12.03 kB / 448.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.04e-05/0.1107, allocations: 62.72 kB / 448.7 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.576e-05/0.1107, allocations: 44.41 kB / 448.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.1111, allocations: 320 kB / 449.1 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.1112, allocations: 20.94 kB / 449.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.1112, allocations: 32.12 kB / 449.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.1125, allocations: 0.7869 MB / 449.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.1125, allocations: 0 / 449.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.1125, allocations: 12 kB / 449.9 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1125, allocations: 4 kB / 449.9 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005267/0.1131, allocations: 251.8 kB / 450.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000757/0.1138, allocations: 0.7682 MB / 450.9 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000923/0.1148, allocations: 0.6589 MB / 451.6 MB, free: 6.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/0.1152, allocations: 287.1 kB / 451.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005153/0.1157, allocations: 0.5896 MB / 452.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.1157, allocations: 50.44 kB / 452.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.803e-06/0.1157, allocations: 0 / 452.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001094/0.1168, allocations: 0.5635 MB / 453.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.1169, allocations: 211.9 kB / 453.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.1171, allocations: 250.6 kB / 453.5 MB, free: 4.406 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1172, allocations: 33.7 kB / 453.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.1173, allocations: 156.8 kB / 453.7 MB, free: 4.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.1173, allocations: 47.53 kB / 453.8 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.237e-05/0.1173, allocations: 12 kB / 453.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.371e-05/0.1174, allocations: 346.8 kB / 454.1 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.1176, allocations: 89.06 kB / 454.2 MB, free: 3.715 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.1179, allocations: 435 kB / 454.6 MB, free: 3.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004773/0.1184, allocations: 0.5398 MB / 455.2 MB, free: 2.418 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.1184, allocations: 4 kB / 455.2 MB, free: 2.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006984/0.1191, allocations: 0.4971 MB / 455.7 MB, free: 1.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.1191, allocations: 12 kB / 455.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.1191, allocations: 15.94 kB / 455.7 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.1192, allocations: 16 kB / 455.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.1194, allocations: 116.5 kB / 455.8 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/0.1195, allocations: 35.8 kB / 455.8 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.1197, allocations: 59.52 kB / 455.9 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.1198, allocations: 32 kB / 455.9 MB, free: 1.629 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.0001577/0.1199, allocations: 185.5 kB / 456.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005756/0.1205, allocations: 365.9 kB / 456.5 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006007/0.1211, allocations: 373.2 kB / 456.8 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.1211, allocations: 4 kB / 456.8 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1212, allocations: 4 kB / 456.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1212, allocations: 3.984 kB / 456.9 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.1215, allocations: 337.1 kB / 457.2 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.1215, allocations: 8 kB / 457.2 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.1219, allocations: 99.88 kB / 457.3 MB, free: 212 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.1219, allocations: 7.984 kB / 457.3 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.1219, allocations: 12 kB / 457.3 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1219, allocations: 7.984 kB / 457.3 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1219, allocations: 4 kB / 457.3 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.1233, allocations: 0.8253 MB / 458.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.575e-05/0.1234, allocations: 116.6 kB / 458.3 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.484e-05/0.1234, allocations: 15.98 kB / 458.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.1237, allocations: 27.98 kB / 458.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.1237, allocations: 12.05 kB / 458.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.1238, allocations: 12 kB / 458.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001978/0.124, allocations: 186 kB / 458.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.124, allocations: 0 / 458.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005467/0.1246, allocations: 79.84 kB / 458.6 MB, free: 14.87 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.001789/0.1263, allocations: 1.386 MB / 460 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007923/0.1272, allocations: 373.6 kB / 460.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1272, allocations: 4 kB / 460.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1273, allocations: 35.91 kB / 460.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.1283, allocations: 309.9 kB / 460.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005075/0.1334, allocations: 4.037 MB / 464.7 MB, free: 8.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.1338, allocations: 0.812 MB / 465.5 MB, free: 7.445 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.134, allocations: 39.28 kB / 465.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.1341, allocations: 111.4 kB / 465.7 MB, free: 7.301 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.1341, allocations: 0 / 465.7 MB, free: 7.301 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.1523, allocations: 7.406 MB / 473.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.1526, allocations: 239.4 kB / 473.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.317, allocations: 0 / 473.3 MB, free: 15.62 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat does not exist to compare? outputFormat=mat