Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009506/0.0009565, allocations: 100.1 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008947/0.0008948, allocations: 185.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.3 MB / 241.9 MB, free: 336 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2072/0.2072, allocations: 44.23 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003312, allocations: 10.78 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 61.91 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002414/0.1304, allocations: 1.983 MB / 473.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1318, allocations: 0.8972 MB / 474.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.132, allocations: 11.88 kB / 474.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.1323, allocations: 95.5 kB / 474.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.1325, allocations: 71.58 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.133, allocations: 227.6 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006416/0.1336, allocations: 0.6198 MB / 475.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.1338, allocations: 69.22 kB / 475.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.1341, allocations: 263 kB / 475.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003376/0.1345, allocations: 290.9 kB / 476.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.754e-05/0.1345, allocations: 35.94 kB / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.463e-05/0.1346, allocations: 35.94 kB / 476.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.1348, allocations: 155.5 kB / 476.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.128e-05/0.1349, allocations: 93.45 kB / 476.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003506/0.1352, allocations: 379.3 kB / 476.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1352, allocations: 4 kB / 476.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1352, allocations: 0 / 476.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1353, allocations: 0 / 476.8 MB, free: 8.426 MB / 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.001993/0.1373, allocations: 0.9259 MB / 477.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1373, allocations: 12.03 kB / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.1374, allocations: 86.53 kB / 477.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.1375, allocations: 63.34 kB / 477.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.138, allocations: 374 kB / 478.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/0.1384, allocations: 275.1 kB / 478.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.1385, allocations: 43.91 kB / 478.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.1404, allocations: 0.8633 MB / 479.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1404, allocations: 4 kB / 479.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.421e-05/0.1405, allocations: 19.94 kB / 479.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1405, allocations: 8 kB / 479.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.1437, allocations: 1.329 MB / 480.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002797/0.1466, allocations: 2.081 MB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003646/0.1502, allocations: 0.8916 MB / 483.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.1519, allocations: 0.5481 MB / 484.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.351e-05/0.152, allocations: 13.05 kB / 484.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.152, allocations: 38.56 kB / 484.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.394e-06/0.152, allocations: 0 / 484.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08046/0.2325, allocations: 18.22 MB / 0.4908 GB, free: 14.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.2326, allocations: 90.23 kB / 0.4909 GB, free: 14.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.2331, allocations: 389.4 kB / 0.4913 GB, free: 13.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/0.2333, allocations: 45.7 kB / 0.4913 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.2335, allocations: 221 kB / 0.4915 GB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004295/0.2339, allocations: 398.2 kB / 0.4919 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.2341, allocations: 20 kB / 0.4919 GB, free: 12.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003091/0.2344, allocations: 374.8 kB / 0.4923 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003481/0.2379, allocations: 1.451 MB / 0.4937 GB, free: 11.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003789/0.2417, allocations: 1.607 MB / 0.4953 GB, free: 9.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.245, allocations: 1.304 MB / 0.4966 GB, free: 8.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.245, allocations: 0 / 0.4966 GB, free: 8.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007459/0.2524, allocations: 3.053 MB / 0.4995 GB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.2525, allocations: 11.95 kB / 0.4995 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2525, allocations: 4 kB / 0.4996 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.584e-05/0.2526, allocations: 11.94 kB / 0.4996 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/0.2551, allocations: 467.5 kB / 0.5 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.742e-05/0.2552, allocations: 12 kB / 0.5 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.257, allocations: 275.7 kB / 0.5003 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.2572, allocations: 43.98 kB / 0.5003 GB, free: 4.34 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.000504/0.2577, allocations: 237.5 kB / 0.5006 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.258, allocations: 63.16 kB / 0.5006 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.2583, allocations: 112.7 kB / 0.5007 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.2583, allocations: 15.98 kB / 0.5007 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.2583, allocations: 0 / 0.5007 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.2583, allocations: 3.984 kB / 0.5007 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2448/0.5031, allocations: 5.54 MB / 0.5061 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.053e-05/0.5032, allocations: 24.41 kB / 0.5062 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.5049, allocations: 410.9 kB / 0.5066 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.455e-05/0.505, allocations: 30.94 kB / 0.5066 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.614e-05/0.5051, allocations: 43.78 kB / 0.5066 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.579e-05/0.5051, allocations: 40.67 kB / 0.5067 GB, free: 49.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.478e-05/0.5052, allocations: 38.75 kB / 0.5067 GB, free: 49.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007044/0.5122, allocations: 3.416 MB / 0.51 GB, free: 48.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004532/0.5127, allocations: 241.8 kB / 0.5103 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.5128, allocations: 58.44 kB / 0.5103 GB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.5141, allocations: 252.8 kB / 0.5106 GB, free: 48.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/0.5146, allocations: 236.3 kB / 0.5108 GB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.424e-05/0.5147, allocations: 55.83 kB / 0.5109 GB, free: 48.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003355/0.5151, allocations: 262.2 kB / 0.5111 GB, free: 48.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5151, allocations: 0 / 0.5111 GB, free: 48.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001051/0.5161, allocations: 229.8 kB / 0.5113 GB, free: 48.24 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.007852/0.524, allocations: 4.004 MB / 0.5152 GB, free: 45.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006474/0.5305, allocations: 2.558 MB / 0.5177 GB, free: 45.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-05/0.5305, allocations: 3.531 kB / 0.5177 GB, free: 45.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003419/0.534, allocations: 1.173 MB / 0.5189 GB, free: 44.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.5355, allocations: 158.1 kB / 0.519 GB, free: 44.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01515/0.5506, allocations: 8.17 MB / 0.527 GB, free: 39.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.5512, allocations: 0.9284 MB / 0.5279 GB, free: 38.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001307/0.5525, allocations: 199.4 kB / 0.5281 GB, free: 38.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006363/0.5532, allocations: 220.3 kB / 0.5283 GB, free: 38.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5532, allocations: 0 / 0.5283 GB, free: 38.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03333/0.5865, allocations: 19.8 MB / 0.5477 GB, free: 18.53 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.5867, allocations: 171.7 kB / 0.5478 GB, free: 18.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/2.957, allocations: 0 / 0.5478 GB, free: 18.29 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat