Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.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: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001011, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 226.5 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.0007318/0.0007317, allocations: 96.98 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3024/0.3024, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002783/0.0002783, allocations: 7.938 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2669, allocations: 62.95 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00382/0.2707, allocations: 4.985 MB / 0.5208 GB, free: 33.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002702/0.2735, allocations: 2.158 MB / 0.5229 GB, free: 31.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006509/0.2741, allocations: 39.84 kB / 0.523 GB, free: 31.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003333/0.2745, allocations: 165.6 kB / 0.5231 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.2748, allocations: 142.9 kB / 0.5233 GB, free: 31.78 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006789/0.2755, allocations: 305.9 kB / 0.5235 GB, free: 31.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007542/0.2763, allocations: 1.016 MB / 0.5245 GB, free: 31.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005537/0.2768, allocations: 0.5478 MB / 0.5251 GB, free: 30.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.2771, allocations: 264.5 kB / 0.5253 GB, free: 30.69 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.2773, allocations: 285.6 kB / 0.5256 GB, free: 30.55 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.2774, allocations: 33.81 kB / 0.5256 GB, free: 30.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.2776, allocations: 88.45 kB / 0.5257 GB, free: 30.53 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.84e-05/0.2777, allocations: 136.4 kB / 0.5258 GB, free: 30.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.2779, allocations: 393.2 kB / 0.5262 GB, free: 30.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005673/0.2785, allocations: 0.9262 MB / 0.5271 GB, free: 29.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2785, allocations: 0 / 0.5271 GB, free: 29.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2785, allocations: 0 / 0.5271 GB, free: 29.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.2785, allocations: 0 / 0.5271 GB, free: 29.98 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001074/0.2796, allocations: 0.9627 MB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2796, allocations: 8.562 kB / 0.5281 GB, free: 29.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.2798, allocations: 149.9 kB / 0.5282 GB, free: 29.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.28, allocations: 115.5 kB / 0.5283 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.2805, allocations: 0.5593 MB / 0.5289 GB, free: 28.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.2806, allocations: 69.16 kB / 0.5289 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.098e-05/0.2807, allocations: 96.8 kB / 0.529 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.2819, allocations: 0.8833 MB / 0.5299 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.2819, allocations: 10.62 kB / 0.5299 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.282, allocations: 43.16 kB / 0.5299 GB, free: 28.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.282, allocations: 23.12 kB / 0.53 GB, free: 28.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.2828, allocations: 0.5203 MB / 0.5305 GB, free: 27.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.2855, allocations: 3.653 MB / 0.534 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.2859, allocations: 220.4 kB / 0.5343 GB, free: 25.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.2861, allocations: 110.2 kB / 0.5344 GB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.2863, allocations: 251.1 kB / 0.5346 GB, free: 24.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.2863, allocations: 37.44 kB / 0.5346 GB, free: 24.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.984e-06/0.2863, allocations: 3.938 kB / 0.5346 GB, free: 24.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001963/0.2883, allocations: 1.301 MB / 0.5359 GB, free: 23.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.2883, allocations: 58.19 kB / 0.536 GB, free: 23.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.2886, allocations: 396.9 kB / 0.5363 GB, free: 23.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.2886, allocations: 29.7 kB / 0.5364 GB, free: 23.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.2888, allocations: 470.9 kB / 0.5368 GB, free: 23.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.872e-05/0.2889, allocations: 137.5 kB / 0.537 GB, free: 23.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.624e-05/0.2889, allocations: 10.59 kB / 0.537 GB, free: 23.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.289, allocations: 358.5 kB / 0.5373 GB, free: 22.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.2891, allocations: 115.5 kB / 0.5374 GB, free: 22.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.2894, allocations: 308 kB / 0.5377 GB, free: 22.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.2898, allocations: 456.9 kB / 0.5381 GB, free: 22.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2898, allocations: 2.688 kB / 0.5381 GB, free: 22.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006132/0.2904, allocations: 0.5102 MB / 0.5386 GB, free: 21.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2905, allocations: 8.5 kB / 0.5387 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.2905, allocations: 5.656 kB / 0.5387 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.2906, allocations: 45.39 kB / 0.5387 GB, free: 21.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003228/0.291, allocations: 125.2 kB / 0.5388 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002527/0.2912, allocations: 0.5662 MB / 0.5394 GB, free: 21.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2914, allocations: 18.66 kB / 0.5394 GB, free: 21.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.2915, allocations: 25.75 kB / 0.5394 GB, free: 21.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002653/0.2917, allocations: 232.5 kB / 0.5396 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.2918, allocations: 46.88 kB / 0.5397 GB, free: 21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.2923, allocations: 348.1 kB / 0.54 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2923, allocations: 5.25 kB / 0.54 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2923, allocations: 0 / 0.54 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2923, allocations: 0 / 0.54 GB, free: 20.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.2934, allocations: 1.059 MB / 0.5411 GB, free: 20.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2935, allocations: 0 / 0.5411 GB, free: 20.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.2938, allocations: 83.2 kB / 0.5411 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.2939, allocations: 37.59 kB / 0.5412 GB, free: 20.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.2939, allocations: 11.59 kB / 0.5412 GB, free: 20.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001904/0.2941, allocations: 0.5478 MB / 0.5417 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2941, allocations: 3.938 kB / 0.5417 GB, free: 19.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.2947, allocations: 0.5634 MB / 0.5423 GB, free: 19.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.2948, allocations: 111.4 kB / 0.5424 GB, free: 19.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.2948, allocations: 20.38 kB / 0.5424 GB, free: 19.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.295, allocations: 6.781 kB / 0.5424 GB, free: 19.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.295, allocations: 35.09 kB / 0.5424 GB, free: 19.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2951, allocations: 8.188 kB / 0.5424 GB, free: 19.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.2953, allocations: 265.9 kB / 0.5427 GB, free: 18.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2953, allocations: 0 / 0.5427 GB, free: 18.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005046/0.2958, allocations: 127.5 kB / 0.5428 GB, free: 18.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007735/0.2966, allocations: 1.111 MB / 0.5439 GB, free: 18.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.2971, allocations: 334.7 kB / 0.5442 GB, free: 17.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2972, allocations: 0 / 0.5442 GB, free: 17.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.2974, allocations: 141.4 kB / 0.5444 GB, free: 17.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.2979, allocations: 75.44 kB / 0.5444 GB, free: 17.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004941/0.3029, allocations: 3.835 MB / 0.5482 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.3034, allocations: 0.9538 MB / 0.5491 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003112/0.3037, allocations: 300.4 kB / 0.5494 GB, free: 14.52 MB / 378.7 MB Notification: Performance of SimCode: time 9.91e-07/0.3037, allocations: 0 / 0.5494 GB, free: 14.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.375/3.679, allocations: 13.79 MB / 0.5629 GB, free: 8.223 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches