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.001117/0.001116, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001553/0.001553, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2364/0.2364, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002724/0.0002724, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1392, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002446/0.1417, allocations: 1.979 MB / 483.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1434, allocations: 0.9324 MB / 484.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.1436, allocations: 11.88 kB / 484.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003373/0.1439, allocations: 79.59 kB / 484.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.1442, allocations: 91.7 kB / 484.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.1447, allocations: 215.6 kB / 484.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005433/0.1453, allocations: 427.2 kB / 485.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/0.1455, allocations: 69.2 kB / 485.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.1458, allocations: 259.1 kB / 485.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.1462, allocations: 294.9 kB / 485.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-05/0.1462, allocations: 28 kB / 485.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.917e-05/0.1463, allocations: 32 kB / 485.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.1465, allocations: 151.5 kB / 486 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.609e-05/0.1466, allocations: 93.45 kB / 486.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003945/0.147, allocations: 387.3 kB / 486.5 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.147, allocations: 0 / 486.5 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.147, allocations: 7.938 kB / 486.5 MB, free: 244 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.147, allocations: 3.938 kB / 486.5 MB, free: 240 kB / 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.002269/0.1493, allocations: 0.916 MB / 487.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.1494, allocations: 12.03 kB / 487.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.1495, allocations: 86.53 kB / 487.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.1496, allocations: 67.3 kB / 487.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005378/0.1501, allocations: 370 kB / 488 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003882/0.1505, allocations: 275.1 kB / 488.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.209e-05/0.1506, allocations: 47.91 kB / 488.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/0.1528, allocations: 0.8515 MB / 489.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.1528, allocations: 11.94 kB / 489.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.1529, allocations: 16 kB / 489.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1529, allocations: 12 kB / 489.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003601/0.1565, allocations: 1.321 MB / 490.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.1594, allocations: 2.078 MB / 492.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003072/0.1625, allocations: 0.896 MB / 493.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.816e-05/0.1626, allocations: 8.531 kB / 493.5 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.1627, allocations: 46.55 kB / 493.5 MB, free: 8.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.685e-06/0.1627, allocations: 0 / 493.5 MB, free: 8.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08845/0.2511, allocations: 18.24 MB / 0.4998 GB, free: 6.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.2512, allocations: 94.22 kB / 0.4999 GB, free: 6.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004706/0.2517, allocations: 389.4 kB / 0.5002 GB, free: 6.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.2519, allocations: 41.7 kB / 0.5003 GB, free: 5.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.2521, allocations: 217.1 kB / 0.5005 GB, free: 5.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/0.2525, allocations: 406.1 kB / 0.5009 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.2526, allocations: 20 kB / 0.5009 GB, free: 5.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2528, allocations: 378.7 kB / 0.5012 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/0.2564, allocations: 1.451 MB / 0.5027 GB, free: 3.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/0.2603, allocations: 1.595 MB / 0.5042 GB, free: 1.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003545/0.2639, allocations: 1.308 MB / 0.5055 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.2639, allocations: 4 kB / 0.5055 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2866/0.5505, allocations: 3.04 MB / 0.5085 GB, free: 43.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.5506, allocations: 10.42 kB / 0.5085 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.5506, allocations: 3.094 kB / 0.5085 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/0.5507, allocations: 12.84 kB / 0.5085 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.5536, allocations: 463.5 kB / 0.5089 GB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.66e-05/0.5536, allocations: 9.609 kB / 0.5089 GB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/0.5559, allocations: 284.1 kB / 0.5092 GB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.5561, allocations: 41.3 kB / 0.5093 GB, free: 43.13 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.0005773/0.5567, allocations: 226.9 kB / 0.5095 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000253/0.557, allocations: 64.16 kB / 0.5095 GB, free: 43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002545/0.5572, allocations: 118.1 kB / 0.5096 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.5572, allocations: 13.69 kB / 0.5097 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.5573, allocations: 0.9688 kB / 0.5097 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.5573, allocations: 7.125 kB / 0.5097 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.5704, allocations: 5.543 MB / 0.5151 GB, free: 40.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.478e-05/0.5705, allocations: 24.28 kB / 0.5151 GB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/0.5723, allocations: 413.4 kB / 0.5155 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.923e-05/0.5724, allocations: 31.25 kB / 0.5155 GB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.5725, allocations: 46.55 kB / 0.5156 GB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.283e-05/0.5726, allocations: 39.78 kB / 0.5156 GB, free: 40.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.831e-05/0.5726, allocations: 34.5 kB / 0.5156 GB, free: 40.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.5828, allocations: 4.496 MB / 0.52 GB, free: 36.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008352/0.5838, allocations: 236 kB / 0.5203 GB, free: 36.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/0.584, allocations: 55.58 kB / 0.5203 GB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/0.5859, allocations: 249.5 kB / 0.5205 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007546/0.5867, allocations: 236.2 kB / 0.5208 GB, free: 36.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/0.5868, allocations: 57.47 kB / 0.5208 GB, free: 36.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005739/0.5874, allocations: 259.2 kB / 0.5211 GB, free: 36.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5874, allocations: 0 / 0.5211 GB, free: 36.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001756/0.5892, allocations: 233.4 kB / 0.5213 GB, free: 36.51 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.01078/0.6, allocations: 11.49 MB / 0.5325 GB, free: 26.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006704/0.6067, allocations: 2.565 MB / 0.535 GB, free: 25.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-05/0.6068, allocations: 2.75 kB / 0.535 GB, free: 25.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003382/0.6102, allocations: 1.184 MB / 0.5362 GB, free: 24.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009659/0.6112, allocations: 131.5 kB / 0.5363 GB, free: 24.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/0.6269, allocations: 10.11 MB / 0.5462 GB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.6274, allocations: 0.94 MB / 0.5471 GB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00125/0.6287, allocations: 209.7 kB / 0.5473 GB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006146/0.6293, allocations: 219.3 kB / 0.5475 GB, free: 12.96 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6293, allocations: 0 / 0.5475 GB, free: 12.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.6638, allocations: 19.77 MB / 0.5668 GB, free: 9.316 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.6641, allocations: 162.7 kB / 0.567 GB, free: 9.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.292/2.956, allocations: 0 / 0.567 GB, free: 9.078 MB / 398.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