Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008442/0.0008442, allocations: 100.8 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 192.9 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2395/0.2395, allocations: 45.91 MB / 344.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003127/0.0003127, allocations: 4 kB / 418.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1559, allocations: 63.47 MB / 481.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.368/0.5239, allocations: 62.08 MB / 0.531 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03435/0.5583, allocations: 13.6 MB / 0.5442 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01551/0.5738, allocations: 298.9 kB / 0.5445 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01034/0.5842, allocations: 3.2 MB / 0.5477 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02819/0.6124, allocations: 9.574 MB / 0.557 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005604/0.6181, allocations: 1.164 MB / 0.5581 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.1159/0.734, allocations: 91.98 MB / 0.648 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01195/0.746, allocations: 8.132 MB / 0.6559 GB, free: 5.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004619/0.7507, allocations: 2.156 MB / 0.658 GB, free: 3.367 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005308/0.756, allocations: 3.357 MB / 0.6613 GB, free: 0 / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001321/0.7574, allocations: 240 kB / 0.6615 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004366/0.7617, allocations: 1.221 MB / 0.6627 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.004779/0.7666, allocations: 2.848 MB / 0.6655 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002476/0.7691, allocations: 1.322 MB / 0.6668 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.7812, allocations: 9.531 MB / 0.6761 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.7813, allocations: 0 / 0.6761 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.439e-06/0.7813, allocations: 3.984 kB / 0.6761 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0004597/0.7818, allocations: 0 / 0.6761 GB, free: 0.7969 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01657/0.7983, allocations: 6.868 MB / 0.6828 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.7984, allocations: 8.031 kB / 0.6828 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003787/0.8022, allocations: 1.156 MB / 0.6839 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04796/0.8502, allocations: 8.467 MB / 0.6922 GB, free: 188 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/0.8648, allocations: 5.659 MB / 0.6977 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005025/0.8654, allocations: 385.8 kB / 0.6981 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002587/0.868, allocations: 0.5113 MB / 0.6986 GB, free: 9.555 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3352/1.203, allocations: 15.42 MB / 0.7137 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003256/1.204, allocations: 70.83 kB / 0.7137 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001036/1.205, allocations: 237 kB / 0.7139 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0046/1.209, allocations: 2.546 MB / 0.7164 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03157/1.241, allocations: 12.87 MB / 0.729 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06781/1.309, allocations: 57.12 MB / 0.7848 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01461/1.323, allocations: 6.365 MB / 0.791 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003743/1.327, allocations: 3.314 MB / 0.7942 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/1.342, allocations: 11.35 MB / 0.8053 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/1.342, allocations: 64.45 kB / 0.8054 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 4.989e-06/1.342, allocations: 0 / 0.8054 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1234/1.465, allocations: 39.62 MB / 0.8441 GB, free: 63.59 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/1.465, allocations: 243.9 kB / 0.8443 GB, free: 63.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/1.477, allocations: 5.706 MB / 0.8499 GB, free: 57.62 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009415/1.478, allocations: 73.7 kB / 0.85 GB, free: 57.54 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00304/1.481, allocations: 4.447 MB / 0.8543 GB, free: 53.09 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001883/1.482, allocations: 1.238 MB / 0.8555 GB, free: 51.87 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001032/1.484, allocations: 164 kB / 0.8557 GB, free: 51.71 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005858/1.484, allocations: 0.653 MB / 0.8563 GB, free: 51.05 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005385/1.49, allocations: 3.744 MB / 0.86 GB, free: 47.29 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/1.5, allocations: 8.273 MB / 0.868 GB, free: 36.79 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008228/1.508, allocations: 5.433 MB / 0.8733 GB, free: 31.34 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-05/1.508, allocations: 48 kB / 0.8734 GB, free: 31.29 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03046/1.539, allocations: 15.4 MB / 0.8884 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001939/1.539, allocations: 72 kB / 0.8885 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002917/1.539, allocations: 156 kB / 0.8886 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01216/1.551, allocations: 4.12 MB / 0.8927 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006363/1.558, allocations: 1.805 MB / 0.8944 GB, free: 9.676 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03221/1.59, allocations: 19.59 MB / 0.9136 GB, free: 5.953 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008402/1.598, allocations: 0.4943 MB / 0.914 GB, free: 5.461 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002076/1.601, allocations: 468 kB / 0.9145 GB, free: 5.004 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (966): * Single equations (assignments): 962 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008616/1.609, allocations: 3.118 MB / 0.9175 GB, free: 1.871 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002096/1.611, allocations: 0.5246 MB / 0.918 GB, free: 1.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3639/1.975, allocations: 9.591 MB / 0.9274 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.1e-05/1.975, allocations: 34.38 kB / 0.9274 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.981e-05/1.975, allocations: 14.7 kB / 0.9275 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.721e-05/1.975, allocations: 19.48 kB / 0.9275 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04043/2.016, allocations: 19.69 MB / 0.9467 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.437e-05/2.016, allocations: 11.66 kB / 0.9467 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/2.019, allocations: 0.4921 MB / 0.9472 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01174/2.03, allocations: 3.649 MB / 0.9508 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008547/2.031, allocations: 71.67 kB / 0.9508 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02301/2.054, allocations: 17.16 MB / 0.9676 GB, free: 161.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/2.054, allocations: 11.94 kB / 0.9676 GB, free: 161.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02562/2.08, allocations: 14.18 MB / 0.9814 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002446/2.082, allocations: 0.5717 MB / 0.982 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002263/2.085, allocations: 63.88 kB / 0.9821 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004386/2.089, allocations: 234.1 kB / 0.9823 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/2.091, allocations: 225.9 kB / 0.9825 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008775/2.092, allocations: 88.7 kB / 0.9826 GB, free: 146.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007955/2.1, allocations: 3.616 MB / 0.9861 GB, free: 143.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/2.1, allocations: 0 / 0.9861 GB, free: 143.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008817/2.108, allocations: 1.694 MB / 0.9878 GB, free: 141.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.w) * 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 (256): * Single equations (assignments): 252 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02474/2.133, allocations: 14.91 MB / 1.002 GB, free: 126.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01458/2.148, allocations: 9.196 MB / 1.011 GB, free: 117.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/2.148, allocations: 4 kB / 1.011 GB, free: 117.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006095/2.154, allocations: 3.632 MB / 1.015 GB, free: 113.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007352/2.161, allocations: 0.7466 MB / 1.016 GB, free: 113.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1149/2.276, allocations: 62.66 MB / 1.077 GB, free: 45.42 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007701/2.284, allocations: 4.826 MB / 1.081 GB, free: 40.55 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007647/2.292, allocations: 2.586 MB / 1.084 GB, free: 37.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005733/2.297, allocations: 3.065 MB / 1.087 GB, free: 34.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.663e-06/2.297, allocations: 0 / 1.087 GB, free: 34.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4684/2.766, allocations: 134.5 MB / 1.218 GB, free: 99.44 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/2.766, allocations: 205.5 kB / 1.219 GB, free: 99.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.507/8.273, allocations: 2.906 kB / 1.219 GB, free: 99.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat