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/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) 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 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(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/ModelicaServices trunk/package.mo): time 0.0008619/0.0008618, allocations: 98.42 kB / 17 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.0009121/0.0009122, allocations: 192.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2383/0.2383, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002566, allocations: 11.94 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1318, allocations: 63.46 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002931/0.1348, allocations: 1.995 MB / 483.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1365, allocations: 0.9322 MB / 484.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002693/0.1368, allocations: 7.938 kB / 484.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003375/0.1372, allocations: 99.44 kB / 484.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1374, allocations: 67.59 kB / 484.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006489/0.1381, allocations: 223.7 kB / 485 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008021/0.1389, allocations: 0.6198 MB / 485.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.1391, allocations: 65.17 kB / 485.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005377/0.1396, allocations: 263 kB / 485.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005392/0.1402, allocations: 298.9 kB / 486.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001641/0.1404, allocations: 28 kB / 486.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1405, allocations: 32 kB / 486.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.1407, allocations: 151.5 kB / 486.4 MB, free: 488 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.1408, allocations: 93.45 kB / 486.5 MB, free: 388 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.1412, allocations: 387.3 kB / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.1413, allocations: 0 / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1413, allocations: 0 / 486.9 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.1413, allocations: 0 / 486.9 MB, free: 0 / 350.1 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.002242/0.1435, allocations: 0.9315 MB / 487.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1436, allocations: 8.031 kB / 487.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.1437, allocations: 94.45 kB / 487.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.1439, allocations: 67.3 kB / 488 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.1444, allocations: 358.1 kB / 488.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003623/0.1448, allocations: 275.1 kB / 488.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.1448, allocations: 43.91 kB / 488.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.1469, allocations: 0.8711 MB / 489.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.1469, allocations: 7.938 kB / 489.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.1469, allocations: 16 kB / 489.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.147, allocations: 12 kB / 489.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003454/0.1504, allocations: 1.317 MB / 490.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.1534, allocations: 2.074 MB / 492.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.1563, allocations: 0.8994 MB / 493.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.1577, allocations: 0.5487 MB / 494.4 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.222e-05/0.1578, allocations: 12 kB / 494.4 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.1579, allocations: 42.56 kB / 494.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.557e-06/0.1579, allocations: 0 / 494.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08207/0.2399, allocations: 18.23 MB / 0.5006 GB, free: 5.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/0.2401, allocations: 90.23 kB / 0.5007 GB, free: 5.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.2406, allocations: 389.4 kB / 0.5011 GB, free: 5.246 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.2408, allocations: 45.7 kB / 0.5011 GB, free: 5.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.241, allocations: 221.1 kB / 0.5013 GB, free: 4.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004402/0.2414, allocations: 398.1 kB / 0.5017 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.2416, allocations: 24 kB / 0.5017 GB, free: 4.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.2418, allocations: 374.7 kB / 0.5021 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003575/0.2454, allocations: 1.455 MB / 0.5035 GB, free: 2.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/0.2492, allocations: 1.599 MB / 0.5051 GB, free: 1.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2714/0.5205, allocations: 1.299 MB / 0.5064 GB, free: 43.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.5206, allocations: 1.297 kB / 0.5064 GB, free: 43.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008321/0.5289, allocations: 3.058 MB / 0.5093 GB, free: 42.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.529, allocations: 5.875 kB / 0.5093 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.529, allocations: 7.031 kB / 0.5094 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.529, allocations: 13.84 kB / 0.5094 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002675/0.5317, allocations: 464.8 kB / 0.5098 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.436e-05/0.5318, allocations: 9 kB / 0.5098 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/0.5337, allocations: 284.6 kB / 0.5101 GB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.5339, allocations: 43.98 kB / 0.5101 GB, free: 42.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],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 (148): * Single equations (assignments): 148 * 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.000456/0.5344, allocations: 227.2 kB / 0.5103 GB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.5346, allocations: 62.73 kB / 0.5104 GB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/0.5348, allocations: 112.4 kB / 0.5105 GB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.5349, allocations: 11.03 kB / 0.5105 GB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.5349, allocations: 1.344 kB / 0.5105 GB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.5349, allocations: 6.234 kB / 0.5105 GB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.5467, allocations: 5.546 MB / 0.5159 GB, free: 40.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/0.5467, allocations: 21.81 kB / 0.516 GB, free: 40.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.5483, allocations: 412 kB / 0.5164 GB, free: 40.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.687e-05/0.5484, allocations: 31.38 kB / 0.5164 GB, free: 40.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.5485, allocations: 47.59 kB / 0.5164 GB, free: 40.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.682e-05/0.5486, allocations: 42.61 kB / 0.5165 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.461e-05/0.5486, allocations: 32.73 kB / 0.5165 GB, free: 40.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007515/0.5561, allocations: 3.417 MB / 0.5198 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.5567, allocations: 239.2 kB / 0.5201 GB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.5568, allocations: 47.98 kB / 0.5201 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001385/0.5582, allocations: 254.9 kB / 0.5204 GB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004499/0.5587, allocations: 230.8 kB / 0.5206 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.415e-05/0.5588, allocations: 61.36 kB / 0.5206 GB, free: 37.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.5591, allocations: 261.6 kB / 0.5209 GB, free: 37.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5591, allocations: 0 / 0.5209 GB, free: 37.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001382/0.5605, allocations: 233 kB / 0.5211 GB, free: 37.83 MB / 382.1 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: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],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 (120): * Single equations (assignments): 120 * 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.007278/0.5678, allocations: 4.01 MB / 0.525 GB, free: 35.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00603/0.5739, allocations: 2.563 MB / 0.5275 GB, free: 34.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/0.5739, allocations: 0 / 0.5275 GB, free: 34.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003173/0.5771, allocations: 1.178 MB / 0.5287 GB, free: 33.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5785, allocations: 154.6 kB / 0.5288 GB, free: 33.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.5932, allocations: 8.166 MB / 0.5368 GB, free: 24.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005275/0.5938, allocations: 0.9207 MB / 0.5377 GB, free: 23.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.5951, allocations: 209.4 kB / 0.5379 GB, free: 23.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006535/0.5958, allocations: 223.4 kB / 0.5381 GB, free: 23.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5958, allocations: 0 / 0.5381 GB, free: 23.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.629, allocations: 19.82 MB / 0.5575 GB, free: 3.816 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.6292, allocations: 175.5 kB / 0.5576 GB, free: 3.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/2.989, allocations: 0 / 0.5576 GB, free: 3.57 MB / 382.1 MB (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