Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001188, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001156, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 76.16 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4716/0.4734, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008035/0.4815, allocations: 5.78 MB / 0.5366 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005268/0.4868, allocations: 2.357 MB / 0.5389 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.4885, allocations: 41.19 kB / 0.5389 GB, free: 7.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009008/0.4894, allocations: 225.4 kB / 0.5392 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001229/0.4907, allocations: 180.7 kB / 0.5393 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.4925, allocations: 475.4 kB / 0.5398 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.4946, allocations: 1.126 MB / 0.5409 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.4959, allocations: 0.6056 MB / 0.5415 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009813/0.4969, allocations: 382.2 kB / 0.5418 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008698/0.4978, allocations: 388.9 kB / 0.5422 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002865/0.4981, allocations: 94.5 kB / 0.5423 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006432/0.4988, allocations: 159.5 kB / 0.5425 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003618/0.4991, allocations: 216.2 kB / 0.5427 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.5002, allocations: 470.6 kB / 0.5431 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002449/0.5027, allocations: 1.281 MB / 0.5444 GB, free: 3.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.5027, allocations: 0 / 0.5444 GB, free: 3.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5027, allocations: 0 / 0.5444 GB, free: 3.238 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.111e-05/0.5028, allocations: 1.281 kB / 0.5444 GB, free: 3.238 MB / 398.1 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.003144/0.5059, allocations: 1.135 MB / 0.5455 GB, free: 2.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.506, allocations: 9.625 kB / 0.5455 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005229/0.5065, allocations: 111.9 kB / 0.5456 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.5083, allocations: 0.6025 MB / 0.5462 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.5084, allocations: 66.69 kB / 0.5462 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002504/0.5087, allocations: 95.69 kB / 0.5463 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.5107, allocations: 0.8834 MB / 0.5472 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.5107, allocations: 11.84 kB / 0.5472 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.651e-05/0.5108, allocations: 40 kB / 0.5472 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.5108, allocations: 20 kB / 0.5473 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.5119, allocations: 0.5268 MB / 0.5478 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004204/0.5161, allocations: 3.596 MB / 0.5513 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.5167, allocations: 230.6 kB / 0.5515 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.5169, allocations: 108.8 kB / 0.5516 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003318/0.5173, allocations: 255.2 kB / 0.5519 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.5173, allocations: 34.56 kB / 0.5519 GB, free: 11.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.826e-06/0.5174, allocations: 4 kB / 0.5519 GB, free: 11.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002682/0.52, allocations: 1.285 MB / 0.5531 GB, free: 10.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.5201, allocations: 59.34 kB / 0.5532 GB, free: 10.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.5206, allocations: 409.8 kB / 0.5536 GB, free: 10.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.5207, allocations: 29.7 kB / 0.5536 GB, free: 9.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.521, allocations: 466.1 kB / 0.5541 GB, free: 9.523 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.5211, allocations: 134 kB / 0.5542 GB, free: 9.391 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.5213, allocations: 102.2 kB / 0.5543 GB, free: 9.285 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.5215, allocations: 358.8 kB / 0.5546 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.5217, allocations: 117.1 kB / 0.5547 GB, free: 8.809 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.5221, allocations: 310 kB / 0.555 GB, free: 8.422 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006566/0.5228, allocations: 455.6 kB / 0.5555 GB, free: 7.891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.5228, allocations: 7.938 kB / 0.5555 GB, free: 7.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008503/0.5236, allocations: 0.5124 MB / 0.556 GB, free: 7.359 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.5237, allocations: 11.03 kB / 0.556 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.5237, allocations: 12 kB / 0.556 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.5239, allocations: 44.83 kB / 0.5561 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.5243, allocations: 119.8 kB / 0.5562 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004336/0.5248, allocations: 0.5562 MB / 0.5567 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.525, allocations: 19.98 kB / 0.5567 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.5251, allocations: 32 kB / 0.5568 GB, free: 6.543 MB / 414.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003598/0.5255, allocations: 237 kB / 0.557 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.278e-05/0.5256, allocations: 51.28 kB / 0.557 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006318/0.5262, allocations: 323 kB / 0.5573 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5262, allocations: 4 kB / 0.5573 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5262, allocations: 0 / 0.5573 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.5262, allocations: 7.984 kB / 0.5574 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.5278, allocations: 1.051 MB / 0.5584 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.5278, allocations: 0 / 0.5584 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.5281, allocations: 83.89 kB / 0.5585 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.5283, allocations: 36.88 kB / 0.5585 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.5283, allocations: 12 kB / 0.5585 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003321/0.5287, allocations: 0.5446 MB / 0.559 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.5287, allocations: 4.031 kB / 0.559 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007664/0.5295, allocations: 0.5604 MB / 0.5596 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.5296, allocations: 116.5 kB / 0.5597 GB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.5296, allocations: 8 kB / 0.5597 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.5298, allocations: 11.98 kB / 0.5597 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.058e-05/0.5299, allocations: 40.02 kB / 0.5598 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.5299, allocations: 8 kB / 0.5598 GB, free: 3.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002854/0.5302, allocations: 271.1 kB / 0.56 GB, free: 3.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5302, allocations: 0 / 0.56 GB, free: 3.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005939/0.5308, allocations: 132 kB / 0.5601 GB, free: 2.891 MB / 414.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002024/0.531, allocations: 119.1 kB / 0.5603 GB, free: 2.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006235/0.5316, allocations: 335.8 kB / 0.5606 GB, free: 2.434 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5316, allocations: 5.688 kB / 0.5606 GB, free: 2.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.5319, allocations: 140.1 kB / 0.5607 GB, free: 2.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005482/0.5325, allocations: 77.92 kB / 0.5608 GB, free: 2.219 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.535, allocations: 1.614 MB / 0.5624 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.5356, allocations: 0.9561 MB / 0.5633 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001809/0.5358, allocations: 60.53 kB / 0.5634 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.5358, allocations: 43.42 kB / 0.5634 GB, free: 15.48 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5359, allocations: 0 / 0.5634 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Templates: time 0.009886/0.5457, allocations: 4.323 MB / 0.5676 GB, free: 11.18 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches