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.001021/0.00102, allocations: 96.98 kB / 16.94 MB, free: 5.723 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.00104/0.00104, allocations: 185.9 kB / 17.83 MB, free: 5.344 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.488/1.488, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004732/0.0004734, allocations: 12 kB / 280.9 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04778/0.1687, allocations: 45.73 MB / 374.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2491/0.4178, allocations: 11.07 MB / 385.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01058/0.4284, allocations: 231.9 kB / 385.5 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009933/0.4384, allocations: 2.277 MB / 387.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02476/0.4632, allocations: 6.686 MB / 394.4 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004164/0.4674, allocations: 0.8457 MB / 395.3 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0399/0.5073, allocations: 28.08 MB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008835/0.5162, allocations: 5.001 MB / 428.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004269/0.5205, allocations: 1.565 MB / 429.9 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004449/0.5249, allocations: 2.272 MB / 432.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001451/0.5264, allocations: 236 kB / 432.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003269/0.5297, allocations: 1.089 MB / 433.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003097/0.5328, allocations: 2.396 MB / 435.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002239/0.5351, allocations: 1.209 MB / 437.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.5462, allocations: 8.097 MB / 445.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.5462, allocations: 0 / 445.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.5463, allocations: 4 kB / 445.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004585/0.5467, allocations: 0 / 445.2 MB, free: 11.63 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01776/0.5645, allocations: 6.452 MB / 451.7 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.5646, allocations: 8.031 kB / 451.7 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004179/0.5687, allocations: 1.134 MB / 452.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04822/0.617, allocations: 9.782 MB / 462.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.6289, allocations: 4.627 MB / 467.2 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003422/0.6292, allocations: 320.8 kB / 467.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/0.6319, allocations: 432.5 kB / 468 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03407/0.6659, allocations: 15.75 MB / 483.7 MB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002751/0.6663, allocations: 63.38 kB / 483.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/0.6683, allocations: 204 kB / 484 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005592/0.6739, allocations: 3.223 MB / 487.2 MB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03071/0.7047, allocations: 14.04 MB / 0.4895 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2949/0.9996, allocations: 57.57 MB / 0.5457 GB, free: 145.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01458/1.014, allocations: 6.571 MB / 0.5521 GB, free: 143.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02152/1.036, allocations: 14.45 MB / 0.5662 GB, free: 139.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/1.036, allocations: 60.62 kB / 0.5663 GB, free: 139.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.981e-06/1.036, allocations: 0 / 0.5663 GB, free: 139.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1355/1.171, allocations: 42.84 MB / 0.6081 GB, free: 109.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/1.171, allocations: 217.4 kB / 0.6083 GB, free: 109.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006911/1.178, allocations: 5.748 MB / 0.6139 GB, free: 103.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00089/1.179, allocations: 73.7 kB / 0.614 GB, free: 103.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002251/1.182, allocations: 4.422 MB / 0.6183 GB, free: 99.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001467/1.183, allocations: 1.243 MB / 0.6196 GB, free: 97.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/1.184, allocations: 168.9 kB / 0.6197 GB, free: 97.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000335/1.184, allocations: 0.6846 MB / 0.6204 GB, free: 97.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00551/1.189, allocations: 4.581 MB / 0.6249 GB, free: 92.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008107/1.198, allocations: 9.527 MB / 0.6342 GB, free: 80.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007756/1.205, allocations: 6.469 MB / 0.6405 GB, free: 74.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-05/1.205, allocations: 52 kB / 0.6405 GB, free: 74.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03749/1.243, allocations: 18.9 MB / 0.659 GB, free: 55.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.975e-05/1.243, allocations: 83.23 kB / 0.6591 GB, free: 55.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/1.243, allocations: 176 kB / 0.6592 GB, free: 54.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02085/1.264, allocations: 5.831 MB / 0.6649 GB, free: 49.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007311/1.271, allocations: 2.047 MB / 0.6669 GB, free: 47.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02609/1.298, allocations: 24.94 MB / 0.6913 GB, free: 21.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007478/1.305, allocations: 0.5471 MB / 0.6918 GB, free: 21.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001441/1.307, allocations: 0.5049 MB / 0.6923 GB, free: 20.83 MB / 446.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.005279/1.312, allocations: 3.092 MB / 0.6953 GB, free: 17.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.313, allocations: 0.4974 MB / 0.6958 GB, free: 17.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2318/1.545, allocations: 12.6 MB / 0.7081 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/1.545, allocations: 56.47 kB / 0.7082 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.943e-05/1.545, allocations: 9.25 kB / 0.7082 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.325e-05/1.545, allocations: 16.31 kB / 0.7082 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05036/1.595, allocations: 24.34 MB / 0.732 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.243e-05/1.595, allocations: 11.64 kB / 0.732 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003397/1.599, allocations: 0.5682 MB / 0.7325 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01822/1.617, allocations: 4.845 MB / 0.7373 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007711/1.618, allocations: 55.52 kB / 0.7373 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02178/1.64, allocations: 20.2 MB / 0.7571 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.64, allocations: 10.89 kB / 0.7571 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03338/1.673, allocations: 17.71 MB / 0.7744 GB, free: 94.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004434/1.678, allocations: 1.246 MB / 0.7756 GB, free: 93.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001521/1.679, allocations: 58.05 kB / 0.7756 GB, free: 93.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003841/1.683, allocations: 256.8 kB / 0.7759 GB, free: 93.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007981/1.684, allocations: 198.1 kB / 0.7761 GB, free: 93.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003178/1.684, allocations: 87.98 kB / 0.7761 GB, free: 93.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005678/1.69, allocations: 3.612 MB / 0.7797 GB, free: 89.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.69, allocations: 0 / 0.7797 GB, free: 89.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008767/1.699, allocations: 1.732 MB / 0.7814 GB, free: 88.07 MB / 446.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.03345/1.732, allocations: 19.43 MB / 0.8003 GB, free: 68.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01384/1.746, allocations: 10.55 MB / 0.8106 GB, free: 58.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/1.746, allocations: 0 / 0.8106 GB, free: 58.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004611/1.751, allocations: 4.002 MB / 0.8145 GB, free: 54.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/1.754, allocations: 0.5886 MB / 0.8151 GB, free: 53.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2419/1.996, allocations: 149.6 MB / 0.9612 GB, free: 43.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00725/2.003, allocations: 4.763 MB / 0.9658 GB, free: 42.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008446/2.011, allocations: 2.986 MB / 0.9687 GB, free: 41.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004288/2.016, allocations: 2.927 MB / 0.9716 GB, free: 41.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.723e-06/2.016, allocations: 0 / 0.9716 GB, free: 41.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3347/2.35, allocations: 135.2 MB / 1.104 GB, free: 86.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/2.351, allocations: 210.4 kB / 1.104 GB, free: 86.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.234/7.584, allocations: 0 / 1.104 GB, free: 86.35 MB / 446.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