Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000761/0.000761, allocations: 88.7 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002278/0.0002279, allocations: 11.98 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1839, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008132/0.1921, allocations: 12.64 MB / 420.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006108/0.1982, allocations: 4.046 MB / 424.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.1995, allocations: 51.88 kB / 424.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008988/0.2004, allocations: 0.5987 MB / 425.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003296/0.2037, allocations: 2.16 MB / 427.6 MB, free: 8.137 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007722/0.2045, allocations: 451.2 kB / 428.1 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002148/0.2066, allocations: 2.793 MB / 430.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.2079, allocations: 1.379 MB / 432.2 MB, free: 3.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005734/0.2085, allocations: 0.7043 MB / 432.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008789/0.2094, allocations: 1.137 MB / 434.1 MB, free: 1.633 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.2095, allocations: 76 kB / 434.2 MB, free: 1.559 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.2106, allocations: 0.8657 MB / 435 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005732/0.2112, allocations: 0.9351 MB / 436 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008282/0.212, allocations: 1.1 MB / 437.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.2145, allocations: 2.955 MB / 440 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2145, allocations: 0 / 440 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2145, allocations: 4 kB / 440 MB, free: 11.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.845e-05/0.2146, allocations: 0 / 440 MB, free: 11.68 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.003963/0.2185, allocations: 2.403 MB / 442.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2186, allocations: 12.03 kB / 442.4 MB, free: 9.203 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005244/0.2191, allocations: 454 kB / 442.9 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005494/0.2246, allocations: 1.698 MB / 444.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00238/0.227, allocations: 1.519 MB / 446.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/0.2271, allocations: 118.9 kB / 446.2 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/0.2274, allocations: 151.9 kB / 446.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007654/0.2351, allocations: 6.359 MB / 452.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.049e-05/0.2351, allocations: 31.66 kB / 452.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.2353, allocations: 79.89 kB / 452.8 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002203/0.2376, allocations: 1.433 MB / 454.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008586/0.2462, allocations: 5.662 MB / 459.9 MB, free: 7.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02573/0.2719, allocations: 26.28 MB / 486.2 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/0.2758, allocations: 2.262 MB / 488.5 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.277, allocations: 1.015 MB / 489.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.2771, allocations: 11.98 kB / 489.5 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.2771, allocations: 42.56 kB / 489.5 MB, free: 8.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 2.925e-06/0.2771, allocations: 4 kB / 489.5 MB, free: 8.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01898/0.2961, allocations: 8.555 MB / 498.1 MB, free: 15.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.2962, allocations: 140.5 kB / 498.2 MB, free: 15.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003237/0.2994, allocations: 2.82 MB / 0.4893 GB, free: 12.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.2996, allocations: 33.7 kB / 0.4893 GB, free: 12.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.3008, allocations: 2.071 MB / 0.4914 GB, free: 10.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/0.3012, allocations: 442.6 kB / 0.4918 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3013, allocations: 80 kB / 0.4919 GB, free: 10.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002559/0.3016, allocations: 0.4918 MB / 0.4923 GB, free: 9.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.3035, allocations: 1.394 MB / 0.4937 GB, free: 8.234 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003456/0.307, allocations: 4.218 MB / 0.4978 GB, free: 2.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1511/0.4581, allocations: 6.093 MB / 0.5038 GB, free: 86.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.145e-05/0.4582, allocations: 29.61 kB / 0.5038 GB, free: 86.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009206/0.4674, allocations: 6.05 MB / 0.5097 GB, free: 84.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.487e-05/0.4675, allocations: 48.59 kB / 0.5097 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-05/0.4676, allocations: 100.3 kB / 0.5098 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00193/0.4695, allocations: 0.8041 MB / 0.5106 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002194/0.4717, allocations: 0.9848 MB / 0.5116 GB, free: 84.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004/0.4757, allocations: 4.15 MB / 0.5156 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/0.478, allocations: 248.6 kB / 0.5159 GB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002449/0.4782, allocations: 280.3 kB / 0.5161 GB, free: 81.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (533): * Single equations (assignments): 529 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001309/0.4795, allocations: 1.369 MB / 0.5175 GB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.4798, allocations: 233.3 kB / 0.5177 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.4828, allocations: 1.848 MB / 0.5195 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/0.4829, allocations: 12.7 kB / 0.5195 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4829, allocations: 8 kB / 0.5195 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.4829, allocations: 2.25 kB / 0.5195 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006162/0.4891, allocations: 4.796 MB / 0.5242 GB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.4891, allocations: 6.688 kB / 0.5242 GB, free: 74.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.4896, allocations: 135.9 kB / 0.5244 GB, free: 74.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.4914, allocations: 0.6443 MB / 0.525 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.947e-05/0.4915, allocations: 19.98 kB / 0.525 GB, free: 73.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003434/0.4949, allocations: 3.696 MB / 0.5286 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4949, allocations: 3.984 kB / 0.5286 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004312/0.4992, allocations: 3.69 MB / 0.5322 GB, free: 66.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003934/0.4997, allocations: 301.9 kB / 0.5325 GB, free: 65.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.4998, allocations: 19.98 kB / 0.5325 GB, free: 65.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007793/0.5006, allocations: 55.92 kB / 0.5326 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.5008, allocations: 59.98 kB / 0.5326 GB, free: 65.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.315e-05/0.5009, allocations: 27.98 kB / 0.5327 GB, free: 65.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001789/0.5027, allocations: 1.746 MB / 0.5344 GB, free: 63.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5027, allocations: 0 / 0.5344 GB, free: 63.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002427/0.5051, allocations: 0.6413 MB / 0.535 GB, free: 63.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (75): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004551/0.5097, allocations: 4.313 MB / 0.5392 GB, free: 58.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.5136, allocations: 3.385 MB / 0.5425 GB, free: 55.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5136, allocations: 0 / 0.5425 GB, free: 55.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008889/0.5145, allocations: 0.9274 MB / 0.5434 GB, free: 54.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.5162, allocations: 246.4 kB / 0.5437 GB, free: 54.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02545/0.5416, allocations: 21.42 MB / 0.5646 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.5433, allocations: 2.2 MB / 0.5667 GB, free: 28.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.5444, allocations: 1.085 MB / 0.5678 GB, free: 27.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5445, allocations: 0 / 0.5678 GB, free: 27.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.107/5.651, allocations: 56.52 MB / 0.623 GB, free: 2.57 MB / 410.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches