Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.0008629/0.0008629, allocations: 98.78 kB / 16.95 MB, free: 5.918 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.001354/0.001354, allocations: 185.6 kB / 17.84 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004748, allocations: 15.44 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04462/0.1555, allocations: 48.44 MB / 376.9 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2423/0.3978, allocations: 10.63 MB / 387.5 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01082/0.4087, allocations: 230.9 kB / 387.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008941/0.4177, allocations: 2.515 MB / 390.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02335/0.441, allocations: 7.596 MB / 397.8 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004187/0.4453, allocations: 0.8618 MB / 398.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0443/0.4896, allocations: 36.63 MB / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01007/0.4997, allocations: 5.032 MB / 440.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004583/0.5043, allocations: 1.891 MB / 442.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005334/0.5097, allocations: 3.127 MB / 445.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00164/0.5113, allocations: 236 kB / 445.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003795/0.5152, allocations: 1.111 MB / 446.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004251/0.5194, allocations: 2.584 MB / 449.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002696/0.5221, allocations: 1.205 MB / 450.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009709/0.5319, allocations: 8.108 MB / 458.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5319, allocations: 0 / 458.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5319, allocations: 0 / 458.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000363/0.5323, allocations: 0 / 458.6 MB, free: 14.54 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01418/0.5465, allocations: 6.318 MB / 464.9 MB, free: 8.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.5466, allocations: 8.031 kB / 464.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003479/0.55, allocations: 1.152 MB / 466.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03841/0.5885, allocations: 7.645 MB / 473.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.6007, allocations: 5.032 MB / 478.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005784/0.6013, allocations: 313.8 kB / 479.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002269/0.6036, allocations: 433 kB / 479.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/0.6359, allocations: 15.6 MB / 495.1 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003463/0.6363, allocations: 59.47 kB / 495.2 MB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001764/0.6381, allocations: 205.2 kB / 495.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005151/0.6433, allocations: 3.221 MB / 498.6 MB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/0.6702, allocations: 13.87 MB / 0.5004 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2857/0.956, allocations: 57.38 MB / 0.5565 GB, free: 126.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.9695, allocations: 6.477 MB / 0.5628 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004605/0.9742, allocations: 3.558 MB / 0.5663 GB, free: 125.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01786/0.9921, allocations: 14.32 MB / 0.5803 GB, free: 117.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.9922, allocations: 64.55 kB / 0.5803 GB, free: 117.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.962e-06/0.9922, allocations: 0 / 0.5803 GB, free: 117.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1217/1.114, allocations: 42 MB / 0.6213 GB, free: 83.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/1.114, allocations: 217.9 kB / 0.6215 GB, free: 83.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007122/1.121, allocations: 5.494 MB / 0.6269 GB, free: 77.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008237/1.122, allocations: 71.11 kB / 0.627 GB, free: 77.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/1.124, allocations: 4.424 MB / 0.6313 GB, free: 73.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.126, allocations: 1.242 MB / 0.6325 GB, free: 72.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005249/1.126, allocations: 172.8 kB / 0.6327 GB, free: 72.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003653/1.127, allocations: 0.6819 MB / 0.6333 GB, free: 71.35 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00562/1.132, allocations: 4.585 MB / 0.6378 GB, free: 66.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00799/1.14, allocations: 9.56 MB / 0.6472 GB, free: 54.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008153/1.149, allocations: 6.464 MB / 0.6535 GB, free: 48.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-05/1.149, allocations: 52 kB / 0.6535 GB, free: 48.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03845/1.187, allocations: 18.9 MB / 0.672 GB, free: 29.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000233/1.188, allocations: 83.98 kB / 0.6721 GB, free: 29.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000299/1.188, allocations: 172 kB / 0.6722 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01846/1.206, allocations: 5.837 MB / 0.6779 GB, free: 23.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009694/1.216, allocations: 2.047 MB / 0.6799 GB, free: 21.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04007/1.256, allocations: 24.29 MB / 0.7036 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01078/1.267, allocations: 0.5469 MB / 0.7042 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001796/1.269, allocations: 0.5006 MB / 0.7047 GB, free: 11.69 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007701/1.277, allocations: 3.101 MB / 0.7077 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001488/1.278, allocations: 0.4974 MB / 0.7082 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2401/1.518, allocations: 12.6 MB / 0.7205 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/1.518, allocations: 59.36 kB / 0.7205 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.711e-05/1.518, allocations: 12.56 kB / 0.7206 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.24e-05/1.518, allocations: 14.06 kB / 0.7206 GB, free: 160.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04573/1.564, allocations: 24.32 MB / 0.7443 GB, free: 152.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.697e-05/1.564, allocations: 7.594 kB / 0.7443 GB, free: 152.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00273/1.567, allocations: 0.5697 MB / 0.7449 GB, free: 152.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0159/1.583, allocations: 4.843 MB / 0.7496 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008677/1.584, allocations: 58.08 kB / 0.7497 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.607, allocations: 19.57 MB / 0.7688 GB, free: 134.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/1.607, allocations: 11.94 kB / 0.7688 GB, free: 134.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03051/1.638, allocations: 16.98 MB / 0.7854 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003405/1.641, allocations: 1.229 MB / 0.7866 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001684/1.643, allocations: 63.94 kB / 0.7866 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00363/1.647, allocations: 253 kB / 0.7869 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008481/1.647, allocations: 204.4 kB / 0.7871 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000457/1.648, allocations: 80.59 kB / 0.7871 GB, free: 116.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006468/1.654, allocations: 3.421 MB / 0.7905 GB, free: 112.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.654, allocations: 0 / 0.7905 GB, free: 112.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009455/1.664, allocations: 1.704 MB / 0.7921 GB, free: 111 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03166/1.696, allocations: 17.65 MB / 0.8094 GB, free: 93.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0163/1.712, allocations: 10.54 MB / 0.8197 GB, free: 82.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/1.712, allocations: 0 / 0.8197 GB, free: 82.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005802/1.718, allocations: 4 MB / 0.8236 GB, free: 78.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006735/1.725, allocations: 0.6281 MB / 0.8242 GB, free: 78.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3315/2.056, allocations: 64.69 MB / 0.8874 GB, free: 160.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009379/2.066, allocations: 4.633 MB / 0.8919 GB, free: 160 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008943/2.074, allocations: 2.983 MB / 0.8948 GB, free: 159.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00507/2.08, allocations: 2.92 MB / 0.8977 GB, free: 159.9 MB / 462.1 MB Notification: Performance of SimCode: time 2.144e-06/2.08, allocations: 0 / 0.8977 GB, free: 159.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1849/2.265, allocations: 135.7 MB / 1.03 GB, free: 39.48 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/2.265, allocations: 211.5 kB / 1.03 GB, free: 39.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.393/7.658, allocations: 0 / 1.03 GB, free: 39.24 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat