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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 201.2 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.307/1.307, allocations: 226.5 MB / 243.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006938/0.0006938, allocations: 101.8 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3411/0.3411, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002407, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3065, allocations: 62.96 MB / 0.5159 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00475/0.3113, allocations: 4.984 MB / 0.5207 GB, free: 33.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.315, allocations: 2.157 MB / 0.5228 GB, free: 32.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.316, allocations: 35.25 kB / 0.5229 GB, free: 32.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004643/0.3165, allocations: 165.5 kB / 0.523 GB, free: 31.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004635/0.317, allocations: 142.7 kB / 0.5232 GB, free: 31.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009798/0.318, allocations: 307.8 kB / 0.5235 GB, free: 31.69 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.3192, allocations: 1.011 MB / 0.5244 GB, free: 31.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007054/0.3199, allocations: 0.5471 MB / 0.525 GB, free: 30.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004016/0.3203, allocations: 261.5 kB / 0.5252 GB, free: 30.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.3206, allocations: 294 kB / 0.5255 GB, free: 30.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.378e-05/0.3207, allocations: 34.97 kB / 0.5255 GB, free: 30.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.3209, allocations: 91.14 kB / 0.5256 GB, free: 30.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.321, allocations: 131.8 kB / 0.5258 GB, free: 30.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003058/0.3214, allocations: 390.1 kB / 0.5261 GB, free: 30.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006775/0.322, allocations: 0.9248 MB / 0.527 GB, free: 30.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3221, allocations: 2.688 kB / 0.527 GB, free: 30.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3221, allocations: 0 / 0.527 GB, free: 30.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.3221, allocations: 0 / 0.527 GB, free: 30.04 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.001194/0.3233, allocations: 0.9654 MB / 0.528 GB, free: 29.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3233, allocations: 8.062 kB / 0.528 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.3236, allocations: 114.6 kB / 0.5281 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.3242, allocations: 0.5699 MB / 0.5287 GB, free: 28.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.3243, allocations: 74 kB / 0.5287 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.3244, allocations: 94.91 kB / 0.5288 GB, free: 28.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.3256, allocations: 0.8912 MB / 0.5297 GB, free: 28.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.084e-05/0.3257, allocations: 6.969 kB / 0.5297 GB, free: 28.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/0.3258, allocations: 36.53 kB / 0.5297 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.3258, allocations: 22.59 kB / 0.5297 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008719/0.3267, allocations: 0.5253 MB / 0.5303 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002851/0.3295, allocations: 3.642 MB / 0.5338 GB, free: 25.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.33, allocations: 224.9 kB / 0.534 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.3302, allocations: 110.3 kB / 0.5341 GB, free: 25.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001749/0.3304, allocations: 252 kB / 0.5344 GB, free: 24.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/0.3304, allocations: 37.34 kB / 0.5344 GB, free: 24.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.946e-06/0.3304, allocations: 0 / 0.5344 GB, free: 24.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001996/0.3324, allocations: 1.307 MB / 0.5357 GB, free: 23.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.3324, allocations: 58.03 kB / 0.5357 GB, free: 23.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3328, allocations: 401 kB / 0.5361 GB, free: 23.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3328, allocations: 29.7 kB / 0.5362 GB, free: 23.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.333, allocations: 467 kB / 0.5366 GB, free: 23.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.982e-05/0.3331, allocations: 133.9 kB / 0.5367 GB, free: 23.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.689e-05/0.3331, allocations: 10.81 kB / 0.5367 GB, free: 23.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.3332, allocations: 363.3 kB / 0.5371 GB, free: 22.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.3334, allocations: 114.4 kB / 0.5372 GB, free: 22.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.3337, allocations: 298.5 kB / 0.5375 GB, free: 22.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004563/0.3341, allocations: 465.6 kB / 0.5379 GB, free: 22.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3341, allocations: 2.312 kB / 0.5379 GB, free: 22.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006702/0.3348, allocations: 0.5111 MB / 0.5384 GB, free: 21.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.3348, allocations: 7.875 kB / 0.5384 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3349, allocations: 5.25 kB / 0.5384 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001689/0.335, allocations: 35.81 kB / 0.5385 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.3354, allocations: 135.1 kB / 0.5386 GB, free: 21.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002673/0.3357, allocations: 0.556 MB / 0.5391 GB, free: 21.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.3359, allocations: 26.66 kB / 0.5392 GB, free: 21.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.3359, allocations: 25 kB / 0.5392 GB, free: 21.37 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.0002757/0.3362, allocations: 229.9 kB / 0.5394 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.3363, allocations: 51 kB / 0.5395 GB, free: 21.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005329/0.3368, allocations: 344 kB / 0.5398 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3368, allocations: 5.25 kB / 0.5398 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3368, allocations: 3.938 kB / 0.5398 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3368, allocations: 2.812 kB / 0.5398 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.338, allocations: 1.055 MB / 0.5408 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.338, allocations: 2.688 kB / 0.5408 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.3384, allocations: 81.19 kB / 0.5409 GB, free: 20.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.3385, allocations: 34.59 kB / 0.5409 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.3385, allocations: 13.56 kB / 0.541 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002158/0.3387, allocations: 0.5539 MB / 0.5415 GB, free: 19.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3388, allocations: 2.531 kB / 0.5415 GB, free: 19.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006094/0.3394, allocations: 0.5632 MB / 0.542 GB, free: 19.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.116e-05/0.3394, allocations: 114.3 kB / 0.5422 GB, free: 19.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/0.3395, allocations: 16.2 kB / 0.5422 GB, free: 19.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.3396, allocations: 10.41 kB / 0.5422 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.717e-05/0.3397, allocations: 27.52 kB / 0.5422 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.3397, allocations: 12.36 kB / 0.5422 GB, free: 19.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002118/0.34, allocations: 267.6 kB / 0.5425 GB, free: 19.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.34, allocations: 0 / 0.5425 GB, free: 19.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005155/0.3405, allocations: 124.8 kB / 0.5426 GB, free: 19.12 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.000147/0.3406, allocations: 121.5 kB / 0.5427 GB, free: 19.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005714/0.3412, allocations: 321.3 kB / 0.543 GB, free: 18.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3412, allocations: 1.531 kB / 0.543 GB, free: 18.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.3415, allocations: 146 kB / 0.5432 GB, free: 18.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000539/0.3421, allocations: 62.73 kB / 0.5432 GB, free: 18.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.3445, allocations: 2.11 MB / 0.5453 GB, free: 17.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.345, allocations: 0.9577 MB / 0.5462 GB, free: 16.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.3451, allocations: 44.81 kB / 0.5463 GB, free: 16.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3451, allocations: 0 / 0.5463 GB, free: 16.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01695/0.362, allocations: 11 MB / 0.557 GB, free: 12.82 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/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