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.0009397/0.0009398, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 243.1 MB, free: 12.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007747/0.0007747, allocations: 102.9 kB / 295.1 MB, free: 4.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1863/0.1863, allocations: 44.83 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 8 kB / 464.7 MB, free: 68.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08564, allocations: 62.95 MB / 0.5153 GB, free: 5.152 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.003677/0.08936, allocations: 4.97 MB / 0.5202 GB, free: 156 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.092, allocations: 2.163 MB / 0.5223 GB, free: 13.98 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003368/0.09235, allocations: 39.75 kB / 0.5223 GB, free: 13.95 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.09266, allocations: 158.7 kB / 0.5225 GB, free: 13.79 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.09292, allocations: 142.8 kB / 0.5226 GB, free: 13.65 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.09354, allocations: 307.3 kB / 0.5229 GB, free: 13.35 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007851/0.09434, allocations: 0.9737 MB / 0.5239 GB, free: 12.37 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005202/0.09487, allocations: 425.9 kB / 0.5243 GB, free: 11.95 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.09517, allocations: 258.8 kB / 0.5245 GB, free: 11.69 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002776/0.09546, allocations: 290.4 kB / 0.5248 GB, free: 11.41 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.626e-05/0.09553, allocations: 32 kB / 0.5248 GB, free: 11.38 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.09572, allocations: 95.91 kB / 0.5249 GB, free: 11.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.09583, allocations: 131.4 kB / 0.525 GB, free: 11.15 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.09598, allocations: 193.2 kB / 0.5252 GB, free: 10.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007441/0.09673, allocations: 0.9274 MB / 0.5261 GB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09675, allocations: 0 / 0.5261 GB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09675, allocations: 0 / 0.5261 GB, free: 10.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.09677, allocations: 0 / 0.5261 GB, free: 10.03 MB / 362.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.001206/0.09798, allocations: 0.9705 MB / 0.5271 GB, free: 9.004 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.09803, allocations: 12.03 kB / 0.5271 GB, free: 8.992 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.09825, allocations: 110.8 kB / 0.5272 GB, free: 8.883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006398/0.0989, allocations: 0.551 MB / 0.5277 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.09895, allocations: 66 kB / 0.5278 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.09907, allocations: 91.91 kB / 0.5279 GB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.1004, allocations: 0.893 MB / 0.5288 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.1004, allocations: 11.84 kB / 0.5288 GB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-05/0.1005, allocations: 36 kB / 0.5288 GB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.1005, allocations: 24 kB / 0.5288 GB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008937/0.1014, allocations: 0.519 MB / 0.5293 GB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003477/0.1049, allocations: 3.643 MB / 0.5329 GB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.1054, allocations: 219.3 kB / 0.5331 GB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.1056, allocations: 111 kB / 0.5332 GB, free: 2.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002479/0.1059, allocations: 259.3 kB / 0.5334 GB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1059, allocations: 34.56 kB / 0.5335 GB, free: 2.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.1059, allocations: 0 / 0.5335 GB, free: 2.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.002143/0.1081, allocations: 1.289 MB / 0.5347 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.1081, allocations: 59.36 kB / 0.5348 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.1085, allocations: 401.8 kB / 0.5352 GB, free: 248 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1085, allocations: 33.7 kB / 0.5352 GB, free: 208 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.1088, allocations: 462.1 kB / 0.5356 GB, free: 15.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.623e-05/0.1089, allocations: 138 kB / 0.5358 GB, free: 15.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.1089, allocations: 12 kB / 0.5358 GB, free: 15.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1091, allocations: 362.8 kB / 0.5361 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1093, allocations: 113.1 kB / 0.5362 GB, free: 15.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.1096, allocations: 302.2 kB / 0.5365 GB, free: 14.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.1099, allocations: 168.7 kB / 0.5367 GB, free: 14.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1099, allocations: 3.938 kB / 0.5367 GB, free: 14.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000752/0.1107, allocations: 0.5171 MB / 0.5372 GB, free: 14.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1107, allocations: 4 kB / 0.5372 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.1107, allocations: 8 kB / 0.5372 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.1109, allocations: 40.83 kB / 0.5373 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.1112, allocations: 123.8 kB / 0.5374 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003666/0.1116, allocations: 0.5679 MB / 0.5379 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.1118, allocations: 24.11 kB / 0.538 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.1119, allocations: 24 kB / 0.538 GB, free: 13.23 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.0002849/0.1122, allocations: 237.6 kB / 0.5382 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.073e-05/0.1123, allocations: 51.33 kB / 0.5382 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005721/0.1128, allocations: 339.1 kB / 0.5386 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1128, allocations: 4 kB / 0.5386 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1129, allocations: 0 / 0.5386 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1129, allocations: 3.984 kB / 0.5386 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1143, allocations: 1.06 MB / 0.5396 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1143, allocations: 4 kB / 0.5396 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.1146, allocations: 83.89 kB / 0.5397 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/0.1148, allocations: 32.84 kB / 0.5397 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.1148, allocations: 8 kB / 0.5397 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000322/0.1151, allocations: 0.5486 MB / 0.5403 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.1151, allocations: 7.969 kB / 0.5403 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007142/0.1159, allocations: 0.5592 MB / 0.5408 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/0.116, allocations: 116.5 kB / 0.5409 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.116, allocations: 12 kB / 0.5409 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1162, allocations: 15.98 kB / 0.541 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.1162, allocations: 23.97 kB / 0.541 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.1162, allocations: 12 kB / 0.541 GB, free: 9.949 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002587/0.1165, allocations: 267.1 kB / 0.5413 GB, free: 9.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1165, allocations: 0 / 0.5413 GB, free: 9.688 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004432/0.117, allocations: 120 kB / 0.5414 GB, free: 9.57 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.0001743/0.1171, allocations: 122.1 kB / 0.5415 GB, free: 9.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005777/0.1177, allocations: 325.4 kB / 0.5418 GB, free: 9.129 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1177, allocations: 7.938 kB / 0.5418 GB, free: 9.121 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.118, allocations: 144 kB / 0.5419 GB, free: 8.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.1185, allocations: 80.3 kB / 0.542 GB, free: 8.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.121, allocations: 2.105 MB / 0.5441 GB, free: 6.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.1215, allocations: 0.9561 MB / 0.545 GB, free: 5.762 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.082e-05/0.1216, allocations: 43.42 kB / 0.545 GB, free: 5.723 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1216, allocations: 4.188 kB / 0.5451 GB, free: 5.719 MB / 378.7 MB Notification: Performance of Templates: time 0.1976/0.3192, allocations: 10.99 MB / 0.5558 GB, free: 39.86 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