Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 199.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009769/0.0009767, allocations: 101.8 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3783/0.3783, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002966, allocations: 8 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.4302, allocations: 63.24 MB / 0.5193 GB, free: 43.64 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.5633, allocations: 90.31 MB / 0.6075 GB, free: 15.32 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.5636, allocations: 67.94 kB / 0.6075 GB, free: 15.26 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03832/0.602, allocations: 11.93 MB / 0.6192 GB, free: 3.336 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.602, allocations: 4 kB / 0.6192 GB, free: 3.332 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.259e-05/0.6021, allocations: 12 kB / 0.6192 GB, free: 3.32 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00274/0.6048, allocations: 0.9478 MB / 0.6201 GB, free: 2.324 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.6049, allocations: 11.97 kB / 0.6201 GB, free: 2.312 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.6051, allocations: 94.45 kB / 0.6202 GB, free: 2.211 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.6053, allocations: 68.08 kB / 0.6203 GB, free: 2.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007016/0.606, allocations: 362.1 kB / 0.6206 GB, free: 1.754 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000414/0.6064, allocations: 271.1 kB / 0.6209 GB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.6066, allocations: 44 kB / 0.6209 GB, free: 1.406 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.609, allocations: 0.871 MB / 0.6218 GB, free: 0.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.6091, allocations: 7.891 kB / 0.6218 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.537e-05/0.6091, allocations: 20 kB / 0.6218 GB, free: 484 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.6092, allocations: 12 kB / 0.6218 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003888/0.6131, allocations: 1.333 MB / 0.6231 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/0.6166, allocations: 2.092 MB / 0.6252 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002882/0.6195, allocations: 0.8675 MB / 0.626 GB, free: 12.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.111e-05/0.6196, allocations: 8.562 kB / 0.626 GB, free: 12.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.6196, allocations: 39.12 kB / 0.626 GB, free: 12.01 MB / 442.7 MB Notification: Performance of pre-optimization done (n=66): time 2.094e-06/0.6196, allocations: 4 kB / 0.6261 GB, free: 12.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.09615/0.7158, allocations: 18.29 MB / 0.6439 GB, free: 9.547 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.7159, allocations: 94.23 kB / 0.644 GB, free: 9.434 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.7165, allocations: 376.5 kB / 0.6444 GB, free: 9.055 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.7168, allocations: 45.7 kB / 0.6444 GB, free: 9.004 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.7169, allocations: 217.1 kB / 0.6446 GB, free: 8.785 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004834/0.7174, allocations: 394.2 kB / 0.645 GB, free: 8.395 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.7176, allocations: 24 kB / 0.645 GB, free: 8.371 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.7178, allocations: 374.8 kB / 0.6454 GB, free: 7.996 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003913/0.7217, allocations: 1.467 MB / 0.6468 GB, free: 6.527 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004066/0.7258, allocations: 1.603 MB / 0.6484 GB, free: 4.883 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003685/0.7295, allocations: 1.315 MB / 0.6497 GB, free: 3.574 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.7296, allocations: 0 / 0.6497 GB, free: 3.574 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008395/0.738, allocations: 3.08 MB / 0.6527 GB, free: 492 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/0.738, allocations: 18.44 kB / 0.6527 GB, free: 476 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.7381, allocations: 0 / 0.6527 GB, free: 476 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.874e-05/0.7381, allocations: 12 kB / 0.6527 GB, free: 464 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002959/0.7411, allocations: 463.6 kB / 0.6531 GB, free: 0 / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.062e-05/0.7412, allocations: 11.98 kB / 0.6531 GB, free: 15.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002265/0.7434, allocations: 283.7 kB / 0.6534 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.7436, allocations: 43.98 kB / 0.6535 GB, free: 15.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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 0.0006445/0.7443, allocations: 229.5 kB / 0.6537 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.7446, allocations: 63.25 kB / 0.6537 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.7449, allocations: 112.7 kB / 0.6538 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.7449, allocations: 12 kB / 0.6539 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.7449, allocations: 4 kB / 0.6539 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.745, allocations: 11.97 kB / 0.6539 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.7574, allocations: 5.601 MB / 0.6593 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.789e-05/0.7575, allocations: 24.03 kB / 0.6594 GB, free: 9.266 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.7591, allocations: 411.4 kB / 0.6598 GB, free: 8.863 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-05/0.7592, allocations: 28 kB / 0.6598 GB, free: 8.836 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/0.7593, allocations: 48 kB / 0.6598 GB, free: 8.789 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.634e-05/0.7593, allocations: 43.84 kB / 0.6599 GB, free: 8.746 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-05/0.7594, allocations: 35.88 kB / 0.6599 GB, free: 8.711 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008487/0.7679, allocations: 4.531 MB / 0.6643 GB, free: 3.316 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005494/0.7684, allocations: 240.3 kB / 0.6646 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001911/0.7687, allocations: 55.97 kB / 0.6646 GB, free: 3.008 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/0.7701, allocations: 255.8 kB / 0.6649 GB, free: 2.758 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000494/0.7706, allocations: 231.2 kB / 0.6651 GB, free: 2.531 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/0.7708, allocations: 59.98 kB / 0.6651 GB, free: 2.473 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004103/0.7712, allocations: 279.1 kB / 0.6654 GB, free: 2.199 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7712, allocations: 0 / 0.6654 GB, free: 2.199 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001289/0.7725, allocations: 243.9 kB / 0.6656 GB, free: 1.961 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.01138/0.7839, allocations: 11.53 MB / 0.6769 GB, free: 5.766 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006644/0.7906, allocations: 2.59 MB / 0.6794 GB, free: 3.176 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-05/0.7906, allocations: 4 kB / 0.6794 GB, free: 3.172 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00351/0.7942, allocations: 1.193 MB / 0.6806 GB, free: 1.984 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.7953, allocations: 131.1 kB / 0.6807 GB, free: 1.859 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/0.8149, allocations: 10.19 MB / 0.6907 GB, free: 7.254 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007301/0.8157, allocations: 0.9359 MB / 0.6916 GB, free: 6.293 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001407/0.8172, allocations: 194 kB / 0.6918 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007795/0.818, allocations: 215.4 kB / 0.692 GB, free: 5.891 MB / 0.4948 GB Notification: Performance of SimCode: time 1.993e-06/0.818, allocations: 4 kB / 0.692 GB, free: 5.887 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/1.136, allocations: 19.91 MB / 0.7114 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/1.136, allocations: 162.2 kB / 0.7116 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.614/3.751, allocations: 6.266 kB / 0.7116 GB, free: 138.1 MB / 0.4948 GB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat