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.001281/0.001281, allocations: 195.2 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 226.5 MB / 244.1 MB, free: 8.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007838/0.0007838, allocations: 90.05 kB / 296.1 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2949/0.2949, allocations: 44.83 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 7.984 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2955, allocations: 62.94 MB / 0.5165 GB, free: 37.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.4066, allocations: 94.56 MB / 0.6088 GB, free: 10.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.4069, allocations: 71.97 kB / 0.6089 GB, free: 10.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03145/0.4383, allocations: 14.01 MB / 0.6225 GB, free: 12.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4384, allocations: 3.938 kB / 0.6226 GB, free: 12.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.771e-05/0.4384, allocations: 27.98 kB / 0.6226 GB, free: 12.59 MB / 442.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.00128/0.4397, allocations: 0.951 MB / 0.6235 GB, free: 11.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.4398, allocations: 12.03 kB / 0.6235 GB, free: 11.58 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.44, allocations: 115.7 kB / 0.6236 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000721/0.4407, allocations: 0.5618 MB / 0.6242 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.776e-05/0.4408, allocations: 66.38 kB / 0.6242 GB, free: 10.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.4409, allocations: 96.28 kB / 0.6243 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.4423, allocations: 0.8858 MB / 0.6252 GB, free: 9.754 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.4423, allocations: 12.03 kB / 0.6252 GB, free: 9.742 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.4424, allocations: 39.94 kB / 0.6252 GB, free: 9.703 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.4424, allocations: 24 kB / 0.6253 GB, free: 9.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009214/0.4433, allocations: 0.519 MB / 0.6258 GB, free: 9.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00332/0.4467, allocations: 3.638 MB / 0.6293 GB, free: 5.367 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.4472, allocations: 228 kB / 0.6295 GB, free: 5.133 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.4473, allocations: 110.6 kB / 0.6297 GB, free: 5.023 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002025/0.4476, allocations: 247.3 kB / 0.6299 GB, free: 4.727 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.4476, allocations: 38.5 kB / 0.6299 GB, free: 4.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.4476, allocations: 3.938 kB / 0.6299 GB, free: 4.676 MB / 442.7 MB Notification: Performance of matching and sorting (n=35): time 0.002176/0.4498, allocations: 1.309 MB / 0.6312 GB, free: 3.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.4498, allocations: 55.41 kB / 0.6313 GB, free: 3.203 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.4502, allocations: 397.8 kB / 0.6316 GB, free: 2.809 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.4503, allocations: 37.7 kB / 0.6317 GB, free: 2.766 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.4505, allocations: 462.1 kB / 0.6321 GB, free: 2.305 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.844e-05/0.4506, allocations: 138.1 kB / 0.6322 GB, free: 2.168 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.4507, allocations: 16 kB / 0.6323 GB, free: 2.152 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4508, allocations: 354.8 kB / 0.6326 GB, free: 1.797 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.451, allocations: 109.1 kB / 0.6327 GB, free: 1.691 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.4513, allocations: 314.2 kB / 0.633 GB, free: 1.301 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005358/0.4519, allocations: 456.7 kB / 0.6334 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4519, allocations: 11.94 kB / 0.6335 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007486/0.4526, allocations: 0.5087 MB / 0.6339 GB, free: 244 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4527, allocations: 8 kB / 0.634 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.4527, allocations: 11.94 kB / 0.634 GB, free: 224 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.4528, allocations: 41.5 kB / 0.634 GB, free: 180 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.4532, allocations: 123.8 kB / 0.6341 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003715/0.4536, allocations: 0.5563 MB / 0.6347 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.4538, allocations: 23.94 kB / 0.6347 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.4538, allocations: 24 kB / 0.6347 GB, free: 15.43 MB / 458.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.0003109/0.4541, allocations: 230 kB / 0.6349 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.4542, allocations: 47.44 kB / 0.635 GB, free: 15.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005874/0.4548, allocations: 340.1 kB / 0.6353 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.4548, allocations: 7.938 kB / 0.6353 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4548, allocations: 0 / 0.6353 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4548, allocations: 3.938 kB / 0.6353 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.4562, allocations: 1.068 MB / 0.6364 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4562, allocations: 8.156 kB / 0.6364 GB, free: 13.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.4566, allocations: 75.91 kB / 0.6364 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/0.4567, allocations: 36.84 kB / 0.6365 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.4567, allocations: 11.98 kB / 0.6365 GB, free: 13.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003043/0.457, allocations: 0.5484 MB / 0.637 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4571, allocations: 3.984 kB / 0.637 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007076/0.4578, allocations: 0.559 MB / 0.6376 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.391e-05/0.4579, allocations: 120.5 kB / 0.6377 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.314e-05/0.4579, allocations: 11.94 kB / 0.6377 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.4581, allocations: 8 kB / 0.6377 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.4581, allocations: 28 kB / 0.6377 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.4582, allocations: 15.98 kB / 0.6377 GB, free: 12.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.4584, allocations: 263.2 kB / 0.638 GB, free: 11.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4584, allocations: 0 / 0.638 GB, free: 11.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0004899/0.4589, allocations: 140 kB / 0.6381 GB, free: 11.75 MB / 458.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.0001659/0.4591, allocations: 118.9 kB / 0.6382 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005713/0.4597, allocations: 328.8 kB / 0.6386 GB, free: 11.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4597, allocations: 0 / 0.6386 GB, free: 11.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.4599, allocations: 135.8 kB / 0.6387 GB, free: 11.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.4605, allocations: 85.66 kB / 0.6388 GB, free: 11.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.463, allocations: 2.106 MB / 0.6408 GB, free: 8.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.4635, allocations: 0.96 MB / 0.6418 GB, free: 7.945 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.4636, allocations: 43.42 kB / 0.6418 GB, free: 7.902 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4636, allocations: 0 / 0.6418 GB, free: 7.902 MB / 458.7 MB Notification: Performance of Templates: time 0.01246/0.4761, allocations: 11 MB / 0.6525 GB, free: 12.91 MB / 474.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/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