Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001434, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 80.52 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1165, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01347/0.13, allocations: 12.03 MB / 492.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008968/0.139, allocations: 4.314 MB / 496.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002248/0.1413, allocations: 75.75 kB / 496.5 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005382/0.1468, allocations: 2.729 MB / 499.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006678/0.1535, allocations: 1.973 MB / 0.4895 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002482/0.156, allocations: 0.9046 MB / 0.4904 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007849/0.1639, allocations: 5.668 MB / 0.4959 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004885/0.1688, allocations: 3.358 MB / 0.4992 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002898/0.1717, allocations: 1.709 MB / 0.5009 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003594/0.1753, allocations: 2.52 MB / 0.5033 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.1766, allocations: 384 kB / 0.5037 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2286/0.4052, allocations: 1.384 MB / 0.505 GB, free: 18.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003519/0.4088, allocations: 2.159 MB / 0.5071 GB, free: 18.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006642/0.4154, allocations: 2.485 MB / 0.5096 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.4299, allocations: 7.749 MB / 0.5171 GB, free: 16.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.43, allocations: 0 / 0.5171 GB, free: 16.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.43, allocations: 0 / 0.5171 GB, free: 16.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002612/0.4302, allocations: 0.7188 kB / 0.5171 GB, free: 16.54 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01673/0.447, allocations: 5.665 MB / 0.5227 GB, free: 14.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.447, allocations: 8.938 kB / 0.5227 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001697/0.4487, allocations: 0.8041 MB / 0.5235 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03703/0.4858, allocations: 5.958 MB / 0.5293 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01142/0.4972, allocations: 3.791 MB / 0.533 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002789/0.4976, allocations: 245 kB / 0.5332 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/0.4996, allocations: 330.3 kB / 0.5335 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02059/0.5202, allocations: 10.78 MB / 0.5441 GB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002053/0.5204, allocations: 53.06 kB / 0.5441 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001086/0.5215, allocations: 156.2 kB / 0.5443 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/0.5245, allocations: 1.999 MB / 0.5462 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02093/0.5455, allocations: 9.234 MB / 0.5552 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05351/0.599, allocations: 40.99 MB / 0.5953 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.61, allocations: 4.224 MB / 0.5994 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002534/0.6125, allocations: 1.885 MB / 0.6012 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01143/0.624, allocations: 7.509 MB / 0.6086 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/0.6241, allocations: 59.12 kB / 0.6086 GB, free: 1.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 5.591e-06/0.6241, allocations: 0 / 0.6086 GB, free: 1.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1668/0.7909, allocations: 40.64 MB / 0.6483 GB, free: 8.547 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.7911, allocations: 205 kB / 0.6485 GB, free: 8.309 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00825/0.7993, allocations: 4.32 MB / 0.6527 GB, free: 3.965 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006142/0.8, allocations: 57.7 kB / 0.6528 GB, free: 3.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002489/0.8025, allocations: 3.219 MB / 0.6559 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.8038, allocations: 0.8757 MB / 0.6568 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002752/0.8065, allocations: 1.285 MB / 0.658 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.08e-05/0.8066, allocations: 308 kB / 0.6583 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005297/0.8119, allocations: 3.487 MB / 0.6617 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008061/0.82, allocations: 7.112 MB / 0.6687 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/0.8347, allocations: 11.38 MB / 0.6798 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/0.8348, allocations: 36 kB / 0.6798 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04204/0.8769, allocations: 15.68 MB / 0.6951 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.8771, allocations: 62.44 kB / 0.6952 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001943/0.8773, allocations: 128 kB / 0.6953 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2156/1.093, allocations: 6.068 MB / 0.7012 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00548/1.098, allocations: 1.43 MB / 0.7026 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03319/1.132, allocations: 27.15 MB / 0.7291 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006351/1.138, allocations: 398.1 kB / 0.7295 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.139, allocations: 376 kB / 0.7299 GB, free: 167.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005199/1.145, allocations: 2.219 MB / 0.732 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.146, allocations: 390 kB / 0.7324 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02637/1.172, allocations: 11.06 MB / 0.7432 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-05/1.172, allocations: 29.22 kB / 0.7432 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/1.172, allocations: 8 kB / 0.7433 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.082e-05/1.172, allocations: 7.969 kB / 0.7433 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04074/1.213, allocations: 20.55 MB / 0.7633 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.119e-05/1.213, allocations: 5.625 kB / 0.7633 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.215, allocations: 383.3 kB / 0.7637 GB, free: 138 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01897/1.234, allocations: 5.148 MB / 0.7687 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004987/1.235, allocations: 40 kB / 0.7688 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02307/1.258, allocations: 22.24 MB / 0.7905 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.258, allocations: 12.03 kB / 0.7905 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02842/1.286, allocations: 14.3 MB / 0.8045 GB, free: 96.25 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/1.288, allocations: 451.7 kB / 0.8049 GB, free: 95.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008135/1.288, allocations: 51.55 kB / 0.8049 GB, free: 95.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.291, allocations: 178.5 kB / 0.8051 GB, free: 95.57 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006211/1.291, allocations: 160.9 kB / 0.8053 GB, free: 95.42 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/1.292, allocations: 64 kB / 0.8053 GB, free: 95.36 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003846/1.295, allocations: 2.73 MB / 0.808 GB, free: 92.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.295, allocations: 0 / 0.808 GB, free: 92.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005807/1.301, allocations: 1.31 MB / 0.8093 GB, free: 91.32 MB / 0.5294 GB 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03332/1.335, allocations: 14.93 MB / 0.8238 GB, free: 76.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01804/1.353, allocations: 9.487 MB / 0.8331 GB, free: 66.83 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.353, allocations: 4 kB / 0.8331 GB, free: 66.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005396/1.358, allocations: 3.177 MB / 0.8362 GB, free: 63.64 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/1.363, allocations: 0.5263 MB / 0.8367 GB, free: 63.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3372/1.7, allocations: 74.64 MB / 0.9096 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00373/1.704, allocations: 3.508 MB / 0.913 GB, free: 186 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004488/1.709, allocations: 1.963 MB / 0.915 GB, free: 185.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002265/1.711, allocations: 2.076 MB / 0.917 GB, free: 185.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.814e-06/1.711, allocations: 0 / 0.917 GB, free: 185.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1379/1.849, allocations: 109.1 MB / 1.024 GB, free: 96.34 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/12.93, allocations: 3.266 kB / 1.024 GB, free: 96.34 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches