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.001576/0.001576, allocations: 109.8 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002017/0.002018, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.11 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 72.2 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3125, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007111/0.3197, allocations: 5.785 MB / 0.5373 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004755/0.3245, allocations: 2.35 MB / 0.5396 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.3258, allocations: 37.62 kB / 0.5396 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006169/0.3264, allocations: 225.3 kB / 0.5398 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005933/0.3271, allocations: 181.8 kB / 0.54 GB, free: 6.742 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.3283, allocations: 473.5 kB / 0.5405 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001492/0.3298, allocations: 1.119 MB / 0.5415 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008682/0.3307, allocations: 0.6207 MB / 0.5422 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000598/0.3313, allocations: 374.5 kB / 0.5425 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004287/0.3317, allocations: 395.9 kB / 0.5429 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.3318, allocations: 96 kB / 0.543 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003051/0.3322, allocations: 159.2 kB / 0.5431 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.3323, allocations: 208.3 kB / 0.5433 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003764/0.3327, allocations: 470.5 kB / 0.5438 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.3341, allocations: 1.281 MB / 0.545 GB, free: 3.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3341, allocations: 4 kB / 0.545 GB, free: 3.242 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3342, allocations: 1.219 kB / 0.545 GB, free: 3.242 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.3342, allocations: 3.984 kB / 0.545 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.001634/0.3358, allocations: 1.13 MB / 0.5461 GB, free: 2.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3359, allocations: 8.469 kB / 0.5461 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002661/0.3361, allocations: 115.9 kB / 0.5463 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.337, allocations: 0.5987 MB / 0.5468 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.337, allocations: 66.66 kB / 0.5469 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3371, allocations: 95.52 kB / 0.547 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3386, allocations: 0.8825 MB / 0.5479 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.3386, allocations: 15.89 kB / 0.5479 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.681e-05/0.3387, allocations: 40 kB / 0.5479 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.888e-05/0.3387, allocations: 24 kB / 0.5479 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000929/0.3397, allocations: 0.519 MB / 0.5484 GB, free: 344 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.3432, allocations: 3.611 MB / 0.552 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.3438, allocations: 226 kB / 0.5522 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.344, allocations: 104.8 kB / 0.5523 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002122/0.3442, allocations: 243.3 kB / 0.5525 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3442, allocations: 42.55 kB / 0.5526 GB, free: 11.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.365e-06/0.3442, allocations: 0 / 0.5526 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002428/0.3467, allocations: 1.293 MB / 0.5538 GB, free: 10.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.3467, allocations: 59.34 kB / 0.5539 GB, free: 10.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004171/0.3471, allocations: 405.8 kB / 0.5543 GB, free: 10.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.3472, allocations: 33.7 kB / 0.5543 GB, free: 9.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.3474, allocations: 470.1 kB / 0.5547 GB, free: 9.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.3475, allocations: 138 kB / 0.5549 GB, free: 9.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.3477, allocations: 102.2 kB / 0.555 GB, free: 9.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3478, allocations: 354.8 kB / 0.5553 GB, free: 8.922 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.348, allocations: 121.1 kB / 0.5554 GB, free: 8.801 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.3483, allocations: 310 kB / 0.5557 GB, free: 8.414 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005248/0.3488, allocations: 459.6 kB / 0.5562 GB, free: 7.879 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3489, allocations: 0 / 0.5562 GB, free: 7.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007516/0.3496, allocations: 0.517 MB / 0.5567 GB, free: 7.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3496, allocations: 8 kB / 0.5567 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3497, allocations: 4 kB / 0.5567 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.3499, allocations: 36.84 kB / 0.5567 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.3503, allocations: 127.8 kB / 0.5568 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003636/0.3506, allocations: 0.5564 MB / 0.5574 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.3509, allocations: 24.06 kB / 0.5574 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.3509, allocations: 27.98 kB / 0.5574 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.0003103/0.3512, allocations: 225.7 kB / 0.5576 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.523e-05/0.3513, allocations: 59.27 kB / 0.5577 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006001/0.3519, allocations: 327 kB / 0.558 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3519, allocations: 4 kB / 0.558 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.352, allocations: 0 / 0.558 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.352, allocations: 3.984 kB / 0.558 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.3534, allocations: 1.051 MB / 0.559 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3534, allocations: 4 kB / 0.559 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.3538, allocations: 79.89 kB / 0.5591 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/0.3539, allocations: 32.78 kB / 0.5592 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.354, allocations: 16 kB / 0.5592 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003574/0.3544, allocations: 0.5446 MB / 0.5597 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3544, allocations: 0 / 0.5597 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.3551, allocations: 0.5606 MB / 0.5603 GB, free: 3.484 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.575e-05/0.3552, allocations: 116.5 kB / 0.5604 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.593e-05/0.3553, allocations: 12 kB / 0.5604 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.3555, allocations: 8 kB / 0.5604 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.3555, allocations: 35.97 kB / 0.5604 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.3556, allocations: 8 kB / 0.5604 GB, free: 3.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002702/0.3558, allocations: 275.1 kB / 0.5607 GB, free: 3.023 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3558, allocations: 0 / 0.5607 GB, free: 3.023 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.3565, allocations: 128 kB / 0.5608 GB, free: 2.898 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.000167/0.3566, allocations: 123.2 kB / 0.5609 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.3573, allocations: 337.6 kB / 0.5612 GB, free: 2.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3573, allocations: 4.062 kB / 0.5613 GB, free: 2.434 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002453/0.3576, allocations: 143.8 kB / 0.5614 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.0005348/0.3581, allocations: 75.05 kB / 0.5615 GB, free: 2.227 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.3607, allocations: 1.661 MB / 0.5631 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.3613, allocations: 0.9522 MB / 0.564 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3614, allocations: 51.42 kB / 0.5641 GB, free: 15.48 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3614, allocations: 0 / 0.5641 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Templates: time 0.01473/0.3761, allocations: 11.23 MB / 0.575 GB, free: 4.258 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches