Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 102.9 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246 MB, free: 11.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.219/0.219, allocations: 45.92 MB / 344.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 8 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1346, allocations: 63.47 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3295/0.4642, allocations: 38.79 MB / 0.5082 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02186/0.4861, allocations: 8.782 MB / 0.5168 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01111/0.4972, allocations: 180.8 kB / 0.517 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008785/0.5061, allocations: 1.987 MB / 0.5189 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0209/0.527, allocations: 6.003 MB / 0.5248 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003894/0.5309, allocations: 0.6739 MB / 0.5254 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00858/0.5395, allocations: 5.008 MB / 0.5303 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006729/0.5463, allocations: 4.138 MB / 0.5344 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00337/0.5497, allocations: 1.271 MB / 0.5356 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003927/0.5537, allocations: 2.083 MB / 0.5376 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.5548, allocations: 150.4 kB / 0.5378 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002778/0.5576, allocations: 0.7066 MB / 0.5385 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002521/0.5601, allocations: 1.72 MB / 0.5402 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.5619, allocations: 0.8319 MB / 0.541 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006285/0.5682, allocations: 5.246 MB / 0.5461 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.5683, allocations: 128 / 0.5461 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.5683, allocations: 9.234 kB / 0.5461 GB, free: 15.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002677/0.5686, allocations: 3.125 kB / 0.5461 GB, free: 15.99 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.009322/0.5779, allocations: 4.023 MB / 0.55 GB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.578, allocations: 8.031 kB / 0.55 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002/0.58, allocations: 0.7321 MB / 0.5508 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007469/0.5875, allocations: 2.018 MB / 0.5527 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007485/0.595, allocations: 2.688 MB / 0.5553 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003845/0.5954, allocations: 255.4 kB / 0.5556 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001995/0.5975, allocations: 330.1 kB / 0.5559 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02428/0.6218, allocations: 10.23 MB / 0.5659 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000325/0.6222, allocations: 51.53 kB / 0.5659 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001594/0.6238, allocations: 157.6 kB / 0.5661 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00339/0.6272, allocations: 1.903 MB / 0.568 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01937/0.6466, allocations: 8.156 MB / 0.5759 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0616/0.7082, allocations: 39.41 MB / 0.6144 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008428/0.7167, allocations: 3.306 MB / 0.6176 GB, free: 7.594 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/0.7187, allocations: 1.052 MB / 0.6187 GB, free: 6.531 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01069/0.7295, allocations: 5.986 MB / 0.6245 GB, free: 212 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.32e-05/0.7296, allocations: 51.56 kB / 0.6246 GB, free: 152 kB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 6.221e-06/0.7296, allocations: 0 / 0.6246 GB, free: 152 kB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02714/0.7568, allocations: 9.554 MB / 0.6339 GB, free: 6.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.297e-05/0.7569, allocations: 145.5 kB / 0.634 GB, free: 6.328 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007447/0.7643, allocations: 4.04 MB / 0.638 GB, free: 2.266 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002562/0.7646, allocations: 45.7 kB / 0.638 GB, free: 2.215 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002748/0.7674, allocations: 3.189 MB / 0.6411 GB, free: 15.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008028/0.7682, allocations: 0.6374 MB / 0.6418 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.7686, allocations: 120 kB / 0.6419 GB, free: 14.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000497/0.7691, allocations: 0.5583 MB / 0.6424 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/0.7722, allocations: 1.62 MB / 0.644 GB, free: 12.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00557/0.7778, allocations: 5.489 MB / 0.6494 GB, free: 4.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004531/0.7823, allocations: 2.914 MB / 0.6522 GB, free: 1.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/0.7824, allocations: 43.95 kB / 0.6522 GB, free: 1.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01311/0.7956, allocations: 6.843 MB / 0.6589 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.7958, allocations: 64 kB / 0.659 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002254/0.796, allocations: 136 kB / 0.6591 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.7963, allocations: 204 kB / 0.6593 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004587/0.8009, allocations: 1.431 MB / 0.6607 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002823/0.8012, allocations: 267 kB / 0.661 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004744/0.8059, allocations: 305.3 kB / 0.6613 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007351/0.8067, allocations: 376 kB / 0.6616 GB, free: 8.121 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 764 * Array equations: 3 * 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.004207/0.8109, allocations: 2.029 MB / 0.6636 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008266/0.8117, allocations: 351.5 kB / 0.6639 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009728/0.8127, allocations: 418.7 kB / 0.6643 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.08e-05/0.8127, allocations: 22.58 kB / 0.6644 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.8128, allocations: 0 / 0.6644 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.8128, allocations: 11.97 kB / 0.6644 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.8241, allocations: 5.849 MB / 0.6701 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.265e-05/0.8242, allocations: 16 kB / 0.6701 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.8252, allocations: 287.5 kB / 0.6704 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-05/0.8252, allocations: 28 kB / 0.6704 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.8254, allocations: 44 kB / 0.6704 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.033e-05/0.8254, allocations: 35.86 kB / 0.6705 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.936e-05/0.8254, allocations: 27.88 kB / 0.6705 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004161/0.8296, allocations: 3.313 MB / 0.6737 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008608/0.8305, allocations: 425.6 kB / 0.6741 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.8308, allocations: 47.98 kB / 0.6742 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.8318, allocations: 67.95 kB / 0.6742 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.832, allocations: 147.4 kB / 0.6744 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.986e-05/0.8321, allocations: 71.98 kB / 0.6745 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003759/0.8359, allocations: 2.496 MB / 0.6769 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8359, allocations: 0 / 0.6769 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004502/0.8404, allocations: 0.8974 MB / 0.6778 GB, free: 6.996 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * 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.004226/0.8446, allocations: 3.975 MB / 0.6817 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006669/0.8513, allocations: 3.754 MB / 0.6853 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/0.8513, allocations: 4.188 kB / 0.6853 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.8524, allocations: 0.7619 MB / 0.6861 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003657/0.8561, allocations: 455.5 kB / 0.6865 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3574/1.213, allocations: 31.54 MB / 0.7173 GB, free: 158.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004681/1.218, allocations: 3.174 MB / 0.7204 GB, free: 157.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004896/1.223, allocations: 1.813 MB / 0.7222 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002697/1.226, allocations: 1.867 MB / 0.724 GB, free: 157.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.226, allocations: 0.8438 kB / 0.724 GB, free: 157.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/1.33, allocations: 67.44 MB / 0.7899 GB, free: 105 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/1.33, allocations: 185.2 kB / 0.79 GB, free: 104.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.77/5.101, allocations: 1.531 kB / 0.79 GB, free: 104.7 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat