Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 100.3 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001563, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246 MB, free: 11.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.000216, allocations: 4 kB / 306.8 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1172, allocations: 51.48 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002297/0.1195, allocations: 1.568 MB / 359.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000736/0.1203, allocations: 451.2 kB / 360.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.036e-05/0.1204, allocations: 4 kB / 360.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.051e-05/0.1205, allocations: 11.86 kB / 360.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.569e-05/0.1206, allocations: 31.77 kB / 360.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.1207, allocations: 15.98 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.1209, allocations: 87.66 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.121, allocations: 45.53 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.593e-05/0.1211, allocations: 27.86 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.38e-05/0.1212, allocations: 39.78 kB / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.1212, allocations: 4 kB / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.846e-05/0.1212, allocations: 4 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.068e-05/0.1212, allocations: 15.92 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.1213, allocations: 41.7 kB / 360.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.1214, allocations: 72 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.1214, allocations: 4 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1214, allocations: 0 / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.1215, allocations: 4 kB / 360.7 MB, free: 11.51 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005512/0.122, allocations: 391.2 kB / 361.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.1221, allocations: 12.03 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.841e-05/0.1221, allocations: 38.56 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.1222, allocations: 11.91 kB / 361.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.1224, allocations: 194.8 kB / 361.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.1224, allocations: 12.19 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.085e-05/0.1224, allocations: 11.95 kB / 361.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.1227, allocations: 121.8 kB / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1228, allocations: 0 / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1228, allocations: 8 kB / 361.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1228, allocations: 0 / 361.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.123, allocations: 90.62 kB / 361.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006914/0.1237, allocations: 0.5248 MB / 362.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.124, allocations: 78.61 kB / 362.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.1241, allocations: 48.83 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1241, allocations: 0 / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.1241, allocations: 30.56 kB / 362.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.1242, allocations: 3.938 kB / 362.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003877/0.1245, allocations: 141.5 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.1246, allocations: 51.41 kB / 362.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.208e-05/0.1247, allocations: 125.8 kB / 362.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.1247, allocations: 25.7 kB / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/0.1248, allocations: 119.9 kB / 362.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.1248, allocations: 23.66 kB / 362.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/0.1248, allocations: 4 kB / 362.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1249, allocations: 322.8 kB / 363.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.125, allocations: 39.91 kB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.1252, allocations: 83.7 kB / 363.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.1253, allocations: 39.98 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.1253, allocations: 7.953 kB / 363.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002764/0.1256, allocations: 141.4 kB / 363.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1256, allocations: 8 kB / 363.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1256, allocations: 0 / 363.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1256, allocations: 8.125 kB / 363.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.1258, allocations: 39.91 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1258, allocations: 4 kB / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.026e-05/0.1259, allocations: 15.84 kB / 363.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1259, allocations: 8 kB / 363.4 MB, free: 8.516 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.137e-05/0.126, allocations: 122.9 kB / 363.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.1261, allocations: 19.84 kB / 363.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.435e-05/0.1261, allocations: 8.375 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1261, allocations: 4 kB / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.1261, allocations: 0 / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1261, allocations: 0 / 363.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.1263, allocations: 193.6 kB / 363.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.1263, allocations: 0 / 363.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.1265, allocations: 35.86 kB / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.1265, allocations: 0 / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1265, allocations: 4 kB / 363.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1265, allocations: 4 kB / 363.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1265, allocations: 0 / 363.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.1269, allocations: 247.4 kB / 364.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.1269, allocations: 81.02 kB / 364.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.127, allocations: 11.98 kB / 364.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.1271, allocations: 4.094 kB / 364.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.1271, allocations: 11.92 kB / 364.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.1271, allocations: 4 kB / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.504e-05/0.1272, allocations: 98.22 kB / 364.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.254e-06/0.1272, allocations: 4 kB / 364.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002601/0.1275, allocations: 31.78 kB / 364.3 MB, free: 7.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006103/0.1281, allocations: 0.7674 MB / 365.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.1284, allocations: 96.11 kB / 365.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1284, allocations: 0 / 365.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1285, allocations: 47.98 kB / 365.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.1288, allocations: 19.94 kB / 365.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1302, allocations: 0.883 MB / 366.1 MB, free: 5.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.1305, allocations: 0.7004 MB / 366.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.275e-05/0.1305, allocations: 8.438 kB / 366.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.1306, allocations: 31.42 kB / 366.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1306, allocations: 0 / 366.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1436, allocations: 2.03 MB / 368.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/0.1439, allocations: 201.8 kB / 369.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/1.945, allocations: 7.094 kB / 369.1 MB, free: 2.766 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat