Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001791/0.001791, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 227.8 MB / 246.9 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2299/0.2299, allocations: 46.2 MB / 345.3 MB, free: 11.36 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003102, allocations: 8 kB / 419.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1267, allocations: 63.57 MB / 483.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3131/0.4399, allocations: 51.69 MB / 0.5223 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02819/0.4682, allocations: 11.02 MB / 0.5331 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01192/0.4801, allocations: 229.1 kB / 0.5333 GB, free: 6.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003493/0.4836, allocations: 0.6105 MB / 0.5339 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008361/0.492, allocations: 2.384 MB / 0.5362 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002745/0.4948, allocations: 0.9025 MB / 0.5371 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01229/0.5071, allocations: 9.982 MB / 0.5468 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009594/0.5168, allocations: 5.795 MB / 0.5525 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005246/0.5221, allocations: 1.734 MB / 0.5542 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006386/0.5285, allocations: 3.142 MB / 0.5573 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001938/0.5305, allocations: 236 kB / 0.5575 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004248/0.5347, allocations: 1.322 MB / 0.5588 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004287/0.5391, allocations: 2.607 MB / 0.5613 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005229/0.5443, allocations: 2.941 MB / 0.5642 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01295/0.5573, allocations: 9.618 MB / 0.5736 GB, free: 8.426 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.5573, allocations: 0 / 0.5736 GB, free: 8.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5573, allocations: 4 kB / 0.5736 GB, free: 8.422 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003209/0.5577, allocations: 0 / 0.5736 GB, free: 8.422 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01553/0.5732, allocations: 6.047 MB / 0.5795 GB, free: 2.332 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.703e-05/0.5733, allocations: 8.031 kB / 0.5795 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01893/0.5922, allocations: 4.031 MB / 0.5834 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.6025, allocations: 4.051 MB / 0.5874 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/0.6029, allocations: 324.9 kB / 0.5877 GB, free: 9.945 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.6048, allocations: 432.5 kB / 0.5881 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03315/0.638, allocations: 15.76 MB / 0.6035 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/0.6382, allocations: 59.38 kB / 0.6036 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008836/0.6391, allocations: 202.7 kB / 0.6038 GB, free: 8.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006066/0.6452, allocations: 3.223 MB / 0.6069 GB, free: 5.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03095/0.6762, allocations: 14.18 MB / 0.6208 GB, free: 7.457 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08783/0.7641, allocations: 57.79 MB / 0.6772 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01524/0.7793, allocations: 6.592 MB / 0.6836 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005755/0.7851, allocations: 3.755 MB / 0.6873 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02393/0.8091, allocations: 14.8 MB / 0.7017 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.898e-05/0.8092, allocations: 64.56 kB / 0.7018 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 6.633e-06/0.8093, allocations: 0 / 0.7018 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.43/1.239, allocations: 42.75 MB / 0.7436 GB, free: 187.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/1.239, allocations: 216.7 kB / 0.7438 GB, free: 187.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007577/1.247, allocations: 5.459 MB / 0.7491 GB, free: 185.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001107/1.248, allocations: 74.22 kB / 0.7492 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002754/1.251, allocations: 4.344 MB / 0.7534 GB, free: 182.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002063/1.253, allocations: 1.268 MB / 0.7546 GB, free: 181.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/1.254, allocations: 0.778 MB / 0.7554 GB, free: 180.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.652e-05/1.254, allocations: 304.8 kB / 0.7557 GB, free: 180.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006095/1.26, allocations: 4.843 MB / 0.7604 GB, free: 178.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008146/1.268, allocations: 9.82 MB / 0.77 GB, free: 167.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/1.284, allocations: 15.62 MB / 0.7853 GB, free: 149.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000151/1.284, allocations: 55.84 kB / 0.7853 GB, free: 149.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04509/1.329, allocations: 19.64 MB / 0.8045 GB, free: 129.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/1.329, allocations: 80 kB / 0.8046 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002148/1.33, allocations: 176.1 kB / 0.8047 GB, free: 129.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02309/1.353, allocations: 5.968 MB / 0.8106 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007555/1.36, allocations: 2.121 MB / 0.8126 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02881/1.389, allocations: 24.78 MB / 0.8368 GB, free: 96.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00833/1.397, allocations: 0.5627 MB / 0.8374 GB, free: 95.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001625/1.399, allocations: 0.5087 MB / 0.8379 GB, free: 95.46 MB / 0.545 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 (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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005735/1.405, allocations: 3.104 MB / 0.8409 GB, free: 92.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.406, allocations: 497.5 kB / 0.8414 GB, free: 91.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03078/1.437, allocations: 13.03 MB / 0.8541 GB, free: 78.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001431/1.437, allocations: 53.88 kB / 0.8542 GB, free: 78.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.421e-05/1.437, allocations: 15.98 kB / 0.8542 GB, free: 78.69 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.403e-05/1.437, allocations: 15.89 kB / 0.8542 GB, free: 78.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05064/1.488, allocations: 24.76 MB / 0.8784 GB, free: 53.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.997e-05/1.488, allocations: 4 kB / 0.8784 GB, free: 53.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003119/1.491, allocations: 0.5858 MB / 0.879 GB, free: 52.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01997/1.511, allocations: 5.001 MB / 0.8838 GB, free: 47.85 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007122/1.512, allocations: 60.64 kB / 0.8839 GB, free: 47.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02217/1.534, allocations: 19.99 MB / 0.9034 GB, free: 27.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/1.534, allocations: 11.92 kB / 0.9034 GB, free: 27.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2894/1.823, allocations: 17.6 MB / 0.9206 GB, free: 176.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00204/1.826, allocations: 0.5452 MB / 0.9212 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/1.827, allocations: 52.66 kB / 0.9212 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/1.831, allocations: 267.9 kB / 0.9215 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009179/1.831, allocations: 203.2 kB / 0.9217 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002899/1.832, allocations: 82.83 kB / 0.9217 GB, free: 176.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007486/1.839, allocations: 3.394 MB / 0.925 GB, free: 176.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.82e-07/1.839, allocations: 4.594 kB / 0.925 GB, free: 176.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01163/1.851, allocations: 1.741 MB / 0.9267 GB, free: 176.3 MB / 0.545 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 (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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00118/1.852, allocations: 204.5 kB / 0.9269 GB, free: 176.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01991/1.872, allocations: 11 MB / 0.9377 GB, free: 172.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/1.872, allocations: 2.406 kB / 0.9377 GB, free: 172.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006288/1.878, allocations: 4.129 MB / 0.9417 GB, free: 170.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008129/1.887, allocations: 0.5901 MB / 0.9423 GB, free: 170.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02595/1.913, allocations: 19.32 MB / 0.9612 GB, free: 160.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005637/1.918, allocations: 4.609 MB / 0.9657 GB, free: 157 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007047/1.925, allocations: 2.982 MB / 0.9686 GB, free: 155.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/1.927, allocations: 351.7 kB / 0.9689 GB, free: 154.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.343e-06/1.927, allocations: 4 kB / 0.9689 GB, free: 154.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1171/2.044, allocations: 76.8 MB / 1.044 GB, free: 80.22 MB / 0.545 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches