Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.001109/0.001114, allocations: 108.3 kB / 17.21 MB, free: 6.293 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.00107/0.00107, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 222.9 MB / 241.8 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2314/0.2314, allocations: 44.17 MB / 336.1 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 64.31 kB / 407.8 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1546, allocations: 60.83 MB / 468.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.3852/0.5399, allocations: 62.35 MB / 0.5185 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03679/0.5767, allocations: 12.94 MB / 0.5312 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01477/0.5916, allocations: 277.2 kB / 0.5314 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006941/0.5986, allocations: 3.733 MB / 0.5351 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006968/0.6056, allocations: 2.053 MB / 0.5371 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.6085, allocations: 0.9884 MB / 0.5381 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0121/0.6206, allocations: 9.121 MB / 0.547 GB, free: 15.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008044/0.6287, allocations: 4.432 MB / 0.5513 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004454/0.6332, allocations: 1.802 MB / 0.5531 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005223/0.6384, allocations: 2.938 MB / 0.5559 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00144/0.6399, allocations: 300 kB / 0.5562 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.6437, allocations: 1.402 MB / 0.5576 GB, free: 5.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003364/0.6471, allocations: 2.373 MB / 0.5599 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005057/0.6522, allocations: 2.715 MB / 0.5625 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.6636, allocations: 8.595 MB / 0.5709 GB, free: 8.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.6636, allocations: 4 kB / 0.5709 GB, free: 8.508 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.6637, allocations: 4 kB / 0.5709 GB, free: 8.504 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003127/0.664, allocations: 0 / 0.5709 GB, free: 8.504 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01926/0.6832, allocations: 6.435 MB / 0.5772 GB, free: 2.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.6833, allocations: 8.031 kB / 0.5772 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002886/0.6862, allocations: 0.9149 MB / 0.5781 GB, free: 1.207 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03691/0.7231, allocations: 6.015 MB / 0.584 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01085/0.734, allocations: 4.876 MB / 0.5888 GB, free: 6.328 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.7343, allocations: 286.4 kB / 0.589 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.7357, allocations: 395.4 kB / 0.5894 GB, free: 5.738 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02513/0.7608, allocations: 11.89 MB / 0.601 GB, free: 9.172 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00024/0.7611, allocations: 67.42 kB / 0.6011 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007694/0.7619, allocations: 182.8 kB / 0.6013 GB, free: 8.965 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00358/0.7655, allocations: 2.139 MB / 0.6034 GB, free: 6.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/0.7867, allocations: 10.16 MB / 0.6133 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06174/0.8485, allocations: 47.28 MB / 0.6594 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/0.8626, allocations: 5.776 MB / 0.6651 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00353/0.8662, allocations: 2.939 MB / 0.668 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/0.8794, allocations: 8.754 MB / 0.6765 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.191e-05/0.8795, allocations: 51.88 kB / 0.6766 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=206): time 6.232e-06/0.8795, allocations: 0 / 0.6766 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=262): time 0.3765/1.256, allocations: 34.72 MB / 0.7105 GB, free: 189 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/1.256, allocations: 207.5 kB / 0.7107 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.269, allocations: 4.793 MB / 0.7153 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007675/1.269, allocations: 62.08 kB / 0.7154 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002869/1.272, allocations: 3.6 MB / 0.7189 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001539/1.274, allocations: 0.9711 MB / 0.7199 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002407/1.276, allocations: 1.342 MB / 0.7212 GB, free: 183 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.357e-05/1.276, allocations: 301.1 kB / 0.7215 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00463/1.281, allocations: 3.028 MB / 0.7244 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/1.287, allocations: 6.846 MB / 0.7311 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/1.298, allocations: 10.67 MB / 0.7415 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/1.298, allocations: 39.16 kB / 0.7416 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02491/1.323, allocations: 13.21 MB / 0.7545 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.604e-05/1.323, allocations: 68.03 kB / 0.7545 GB, free: 158 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/1.323, allocations: 136 kB / 0.7547 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/1.334, allocations: 4.218 MB / 0.7588 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00457/1.339, allocations: 1.408 MB / 0.7602 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03107/1.37, allocations: 26.4 MB / 0.7859 GB, free: 125.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006743/1.377, allocations: 403.3 kB / 0.7863 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.378, allocations: 398.3 kB / 0.7867 GB, free: 124.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (756): * Single equations (assignments): 750 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.004627/1.383, allocations: 2.474 MB / 0.7891 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.384, allocations: 442.3 kB / 0.7895 GB, free: 121.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01477/1.399, allocations: 8.226 MB / 0.7976 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.722e-05/1.399, allocations: 28 kB / 0.7976 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.389e-05/1.399, allocations: 16 kB / 0.7976 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-05/1.399, allocations: 11.95 kB / 0.7976 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02991/1.429, allocations: 16.9 MB / 0.8141 GB, free: 96.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.153e-05/1.429, allocations: 8 kB / 0.8141 GB, free: 96.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/1.43, allocations: 291.6 kB / 0.8144 GB, free: 96.21 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009608/1.44, allocations: 3.93 MB / 0.8183 GB, free: 92.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000407/1.44, allocations: 53.08 kB / 0.8183 GB, free: 92.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02778/1.468, allocations: 25.21 MB / 0.8429 GB, free: 66.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.468, allocations: 8 kB / 0.8429 GB, free: 66.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/1.486, allocations: 12.11 MB / 0.8548 GB, free: 54.36 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.488, allocations: 0.4907 MB / 0.8552 GB, free: 53.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009259/1.489, allocations: 44 kB / 0.8553 GB, free: 53.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/1.491, allocations: 167.8 kB / 0.8554 GB, free: 53.64 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008097/1.492, allocations: 198 kB / 0.8556 GB, free: 53.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002015/1.492, allocations: 72 kB / 0.8557 GB, free: 53.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004459/1.497, allocations: 3.039 MB / 0.8587 GB, free: 50.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.497, allocations: 3.938 kB / 0.8587 GB, free: 50.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009396/1.506, allocations: 1.415 MB / 0.86 GB, free: 48.93 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02086/1.527, allocations: 12.79 MB / 0.8725 GB, free: 36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01282/1.54, allocations: 8.175 MB / 0.8805 GB, free: 27.81 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.54, allocations: 0 / 0.8805 GB, free: 27.81 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005141/1.545, allocations: 3.525 MB / 0.884 GB, free: 24.25 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004201/1.549, allocations: 0.5814 MB / 0.8845 GB, free: 23.67 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3943/1.944, allocations: 75.97 MB / 0.9587 GB, free: 134 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004169/1.948, allocations: 3.924 MB / 0.9626 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004612/1.953, allocations: 2.004 MB / 0.9645 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002855/1.956, allocations: 2.366 MB / 0.9668 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.603e-06/1.956, allocations: 0 / 0.9668 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1453/2.101, allocations: 113.9 MB / 1.078 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/2.101, allocations: 254.7 kB / 1.078 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.034/7.135, allocations: 0 / 1.078 GB, free: 12.08 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches