Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 199.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008515/0.0008514, allocations: 100.2 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3061/0.3061, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002923/0.0002925, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3182, allocations: 62.95 MB / 0.5159 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.03401/0.3523, allocations: 48.43 MB / 0.5632 GB, free: 2.527 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02621/0.3786, allocations: 10.65 MB / 0.5736 GB, free: 11.28 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.3905, allocations: 229.9 kB / 0.5738 GB, free: 11.24 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008299/0.3988, allocations: 2.51 MB / 0.5762 GB, free: 10.36 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02242/0.4213, allocations: 7.618 MB / 0.5837 GB, free: 3.824 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003824/0.4251, allocations: 0.9011 MB / 0.5846 GB, free: 2.922 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07469/0.4998, allocations: 63.04 MB / 0.6461 GB, free: 3.812 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008243/0.5081, allocations: 5.609 MB / 0.6516 GB, free: 14.11 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004141/0.5123, allocations: 1.888 MB / 0.6534 GB, free: 12.21 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004761/0.5171, allocations: 3.128 MB / 0.6565 GB, free: 9.074 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001204/0.5183, allocations: 236 kB / 0.6567 GB, free: 8.844 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.5214, allocations: 1.318 MB / 0.658 GB, free: 7.523 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00298/0.5244, allocations: 2.567 MB / 0.6605 GB, free: 4.949 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004457/0.5288, allocations: 2.813 MB / 0.6633 GB, free: 2.113 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009854/0.5387, allocations: 7.953 MB / 0.671 GB, free: 10.14 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.5388, allocations: 4 kB / 0.671 GB, free: 10.14 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.047e-06/0.5388, allocations: 0 / 0.671 GB, free: 10.14 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003835/0.5392, allocations: 0 / 0.671 GB, free: 10.14 MB / 490.7 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.01424/0.5534, allocations: 6.094 MB / 0.677 GB, free: 3.961 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5535, allocations: 8.875 kB / 0.677 GB, free: 3.953 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2339/0.7874, allocations: 4.018 MB / 0.6809 GB, free: 134.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008999/0.7965, allocations: 4.07 MB / 0.6849 GB, free: 132.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/0.7968, allocations: 320.4 kB / 0.6852 GB, free: 132.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.798, allocations: 431.4 kB / 0.6856 GB, free: 132.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0214/0.8194, allocations: 15.73 MB / 0.701 GB, free: 125.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.8196, allocations: 66.31 kB / 0.701 GB, free: 125.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005585/0.8201, allocations: 204.1 kB / 0.7012 GB, free: 125.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005147/0.8253, allocations: 3.214 MB / 0.7044 GB, free: 125 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0273/0.8526, allocations: 14.12 MB / 0.7181 GB, free: 120 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05761/0.9103, allocations: 57.82 MB / 0.7746 GB, free: 61.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0114/0.9217, allocations: 6.574 MB / 0.781 GB, free: 54.89 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003849/0.9256, allocations: 3.735 MB / 0.7847 GB, free: 51.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0181/0.9437, allocations: 14.79 MB / 0.7991 GB, free: 35.83 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.9438, allocations: 60.56 kB / 0.7992 GB, free: 35.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=292): time 7.234e-06/0.9438, allocations: 0 / 0.7992 GB, free: 35.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=342): time 0.1267/1.071, allocations: 42.74 MB / 0.8409 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/1.071, allocations: 217.9 kB / 0.8411 GB, free: 8.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007744/1.078, allocations: 5.439 MB / 0.8464 GB, free: 3.254 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007801/1.079, allocations: 69.7 kB / 0.8465 GB, free: 3.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002967/1.082, allocations: 4.342 MB / 0.8507 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.084, allocations: 1.268 MB / 0.852 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005459/1.084, allocations: 183.9 kB / 0.8522 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004863/1.085, allocations: 0.6983 MB / 0.8528 GB, free: 12.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006956/1.092, allocations: 4.796 MB / 0.8575 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01014/1.102, allocations: 9.796 MB / 0.8671 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2647/1.367, allocations: 15.57 MB / 0.8823 GB, free: 154.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/1.367, allocations: 50.72 kB / 0.8823 GB, free: 154.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04247/1.409, allocations: 19.55 MB / 0.9014 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/1.41, allocations: 80.39 kB / 0.9015 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003031/1.41, allocations: 177.1 kB / 0.9017 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02217/1.432, allocations: 5.969 MB / 0.9075 GB, free: 147.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007574/1.44, allocations: 2.128 MB / 0.9096 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02976/1.47, allocations: 24.78 MB / 0.9338 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007078/1.477, allocations: 0.5634 MB / 0.9343 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.478, allocations: 0.5104 MB / 0.9348 GB, free: 135.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.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 (1099): * Single equations (assignments): 1091 * 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.005693/1.484, allocations: 3.095 MB / 0.9379 GB, free: 133 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.485, allocations: 498.5 kB / 0.9383 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02758/1.513, allocations: 13.02 MB / 0.951 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.477e-05/1.513, allocations: 53.23 kB / 0.9511 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/1.513, allocations: 8 kB / 0.9511 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.145e-05/1.513, allocations: 23.88 kB / 0.9511 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04398/1.557, allocations: 24.75 MB / 0.9753 GB, free: 94.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.267e-05/1.557, allocations: 4 kB / 0.9753 GB, free: 94.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/1.56, allocations: 0.5858 MB / 0.9759 GB, free: 93.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01678/1.577, allocations: 4.997 MB / 0.9808 GB, free: 88.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000671/1.578, allocations: 52.62 kB / 0.9808 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02134/1.599, allocations: 19.98 MB / 1 GB, free: 68.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/1.599, allocations: 11.94 kB / 1 GB, free: 68.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02994/1.629, allocations: 17.58 MB / 1.017 GB, free: 50.94 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/1.63, allocations: 0.5414 MB / 1.018 GB, free: 50.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.631, allocations: 60.86 kB / 1.018 GB, free: 50.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002588/1.634, allocations: 260.7 kB / 1.018 GB, free: 50.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006475/1.635, allocations: 201.6 kB / 1.019 GB, free: 49.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/1.635, allocations: 85.33 kB / 1.019 GB, free: 49.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004444/1.639, allocations: 3.366 MB / 1.022 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.41e-07/1.639, allocations: 7.938 kB / 1.022 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007477/1.647, allocations: 1.761 MB / 1.024 GB, free: 44.68 MB / 0.5261 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 (257): * Single equations (assignments): 249 * 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.0007162/1.647, allocations: 207.5 kB / 1.024 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01429/1.662, allocations: 10.95 MB / 1.035 GB, free: 33.53 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/1.662, allocations: 4 kB / 1.035 GB, free: 33.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005091/1.667, allocations: 4.129 MB / 1.039 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007306/1.674, allocations: 0.5947 MB / 1.039 GB, free: 28.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02476/1.699, allocations: 19.24 MB / 1.058 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005101/1.704, allocations: 4.595 MB / 1.062 GB, free: 4.828 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001976/1.706, allocations: 419.4 kB / 1.063 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of SimCode: time 9.81e-07/1.706, allocations: 0 / 1.063 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of Templates: time 0.3888/2.095, allocations: 148.8 MB / 1.208 GB, free: 65.83 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches