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.001188/0.001188, allocations: 97.48 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003422, allocations: 8 kB / 306.7 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1319, allocations: 51.48 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002376/0.1344, allocations: 1.536 MB / 359.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007995/0.1352, allocations: 467.2 kB / 360.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.1353, allocations: 8 kB / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.703e-05/0.1353, allocations: 7.922 kB / 360.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1354, allocations: 31.88 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.1356, allocations: 15.98 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.1358, allocations: 75.84 kB / 360.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1359, allocations: 29.55 kB / 360.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.731e-05/0.136, allocations: 39.84 kB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.962e-05/0.1361, allocations: 35.84 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.1361, allocations: 4 kB / 360.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.821e-05/0.1362, allocations: 4 kB / 360.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.067e-05/0.1362, allocations: 15.92 kB / 360.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/0.1362, allocations: 41.64 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.1364, allocations: 68.08 kB / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1364, allocations: 0 / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1364, allocations: 0 / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1364, allocations: 0 / 360.6 MB, free: 11.63 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.0005948/0.137, allocations: 399.8 kB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.1371, allocations: 11.97 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.1371, allocations: 46.48 kB / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.1372, allocations: 11.91 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.1374, allocations: 190.8 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1374, allocations: 4.188 kB / 361.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.1374, allocations: 15.94 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.1377, allocations: 128.2 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1377, allocations: 0 / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.1378, allocations: 4 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1378, allocations: 4 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.138, allocations: 83.88 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007216/0.1387, allocations: 0.5248 MB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.139, allocations: 78.59 kB / 362 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.139, allocations: 4 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.139, allocations: 42.5 kB / 362.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.139, allocations: 0 / 362.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004296/0.1395, allocations: 133.7 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.1395, allocations: 59.39 kB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1396, allocations: 121.8 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.1397, allocations: 29.7 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.237e-05/0.1398, allocations: 111.8 kB / 362.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.1398, allocations: 27.64 kB / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.1398, allocations: 0 / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1399, allocations: 318.8 kB / 362.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.1401, allocations: 39.98 kB / 362.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.1402, allocations: 80.19 kB / 363 MB, free: 8.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.1403, allocations: 43.98 kB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1403, allocations: 0 / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002904/0.1406, allocations: 149.4 kB / 363.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1407, allocations: 4 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1407, allocations: 4 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1407, allocations: 96 / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.1409, allocations: 43.8 kB / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1409, allocations: 0 / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.061e-05/0.141, allocations: 27.92 kB / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.141, allocations: 4 kB / 363.2 MB, free: 8.672 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.468e-05/0.1411, allocations: 117.8 kB / 363.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.1411, allocations: 7.859 kB / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.1411, allocations: 16.38 kB / 363.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1412, allocations: 3.984 kB / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1412, allocations: 3.984 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1412, allocations: 0 / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.1414, allocations: 189.6 kB / 363.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1414, allocations: 4 kB / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.1415, allocations: 27.92 kB / 363.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1415, allocations: 7.938 kB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.1416, allocations: 4 kB / 363.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1416, allocations: 0 / 363.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1416, allocations: 4 kB / 363.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004129/0.142, allocations: 247.7 kB / 363.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.546e-05/0.142, allocations: 85.02 kB / 364 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.1421, allocations: 7.953 kB / 364 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.591e-05/0.1422, allocations: 16.03 kB / 364 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.1422, allocations: 4 kB / 364 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.1422, allocations: 3.938 kB / 364 MB, free: 7.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.344e-05/0.1423, allocations: 105.5 kB / 364.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1423, allocations: 0 / 364.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1426, allocations: 23.84 kB / 364.1 MB, free: 7.711 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.000665/0.1432, allocations: 0.771 MB / 364.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.1435, allocations: 91.92 kB / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1435, allocations: 0 / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.1436, allocations: 48.16 kB / 365 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.1439, allocations: 22.7 kB / 365 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.1456, allocations: 1.484 MB / 366.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.146, allocations: 0.7004 MB / 367.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.993e-05/0.146, allocations: 8.422 kB / 367.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/0.1461, allocations: 27.44 kB / 367.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1461, allocations: 4 kB / 367.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01283/0.1589, allocations: 2.012 MB / 369.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.1592, allocations: 196.1 kB / 369.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/1.973, allocations: 0 / 369.5 MB, free: 2.336 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