Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009909/0.0009912, allocations: 95.89 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009912/0.0009913, allocations: 176.3 kB / 16.56 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3586/0.3586, allocations: 43.55 MB / 314.5 MB, free: 8.844 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005059/0.000506, allocations: 16 kB / 383.9 MB, free: 8.059 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1208, allocations: 58.85 MB / 442.7 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008596/0.1294, allocations: 4.697 MB / 447.4 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.1348, allocations: 2.215 MB / 449.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001564/0.1364, allocations: 39.75 kB / 449.7 MB, free: 6.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009598/0.1374, allocations: 166.8 kB / 449.8 MB, free: 5.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001599/0.139, allocations: 322.9 kB / 450.2 MB, free: 5.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.1406, allocations: 399.2 kB / 450.6 MB, free: 5.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.1424, allocations: 0.7294 MB / 451.3 MB, free: 4.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009024/0.1433, allocations: 429.9 kB / 451.7 MB, free: 4.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004859/0.1438, allocations: 258.8 kB / 452 MB, free: 3.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/0.1443, allocations: 282.4 kB / 452.2 MB, free: 3.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.556e-05/0.1444, allocations: 35.94 kB / 452.3 MB, free: 3.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.1447, allocations: 79.91 kB / 452.3 MB, free: 3.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.1448, allocations: 127.4 kB / 452.5 MB, free: 3.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002204/0.145, allocations: 189.2 kB / 452.7 MB, free: 3.117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000957/0.146, allocations: 0.9312 MB / 453.6 MB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.146, allocations: 0 / 453.6 MB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.146, allocations: 0 / 453.6 MB, free: 2.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.146, allocations: 4 kB / 453.6 MB, free: 2.18 MB / 382.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.001352/0.1474, allocations: 0.959 MB / 454.5 MB, free: 1.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1474, allocations: 8.031 kB / 454.6 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.1476, allocations: 102.8 kB / 454.7 MB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008006/0.1484, allocations: 0.5471 MB / 455.2 MB, free: 488 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.1485, allocations: 70 kB / 455.3 MB, free: 416 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1486, allocations: 88 kB / 455.4 MB, free: 328 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2195/0.3681, allocations: 0.8819 MB / 456.2 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/0.3682, allocations: 8.938 kB / 456.2 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.3683, allocations: 37.72 kB / 456.3 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.3683, allocations: 23.31 kB / 456.3 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009318/0.3692, allocations: 0.5284 MB / 456.8 MB, free: 46.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002855/0.3721, allocations: 3.646 MB / 460.5 MB, free: 44.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.3726, allocations: 220.9 kB / 460.7 MB, free: 44.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.3728, allocations: 249.5 kB / 460.9 MB, free: 43.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.3728, allocations: 30.56 kB / 461 MB, free: 43.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.405e-06/0.3728, allocations: 0 / 461 MB, free: 43.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001996/0.3748, allocations: 1.315 MB / 462.3 MB, free: 43.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.388e-05/0.3748, allocations: 54.53 kB / 462.3 MB, free: 43.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.3752, allocations: 396.5 kB / 462.7 MB, free: 43.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.3752, allocations: 35.3 kB / 462.8 MB, free: 43.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.3754, allocations: 471 kB / 463.2 MB, free: 42.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.715e-05/0.3755, allocations: 133.4 kB / 463.4 MB, free: 42.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.3755, allocations: 9.5 kB / 463.4 MB, free: 42.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3756, allocations: 363.4 kB / 463.7 MB, free: 42.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.3758, allocations: 113.3 kB / 463.8 MB, free: 42.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.3761, allocations: 304.9 kB / 464.1 MB, free: 42.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.3764, allocations: 165.6 kB / 464.3 MB, free: 42.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3764, allocations: 2.297 kB / 464.3 MB, free: 42.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007305/0.3771, allocations: 0.5126 MB / 464.8 MB, free: 42.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3772, allocations: 16.3 kB / 464.8 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3772, allocations: 5.719 kB / 464.8 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001819/0.3774, allocations: 37.97 kB / 464.9 MB, free: 42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.3777, allocations: 128.1 kB / 465 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002892/0.378, allocations: 0.5526 MB / 465.5 MB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.3782, allocations: 25.78 kB / 465.6 MB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.3783, allocations: 24.5 kB / 465.6 MB, free: 41.47 MB / 382.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 (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.0002615/0.3785, allocations: 234.6 kB / 465.8 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/0.3786, allocations: 48.5 kB / 465.9 MB, free: 41.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005317/0.3791, allocations: 339.4 kB / 466.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3791, allocations: 2.969 kB / 466.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3791, allocations: 2.812 kB / 466.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3792, allocations: 0 / 466.2 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.3805, allocations: 1.061 MB / 467.3 MB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3805, allocations: 2.875 kB / 467.3 MB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.3808, allocations: 81.78 kB / 467.3 MB, free: 40.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.921e-05/0.3809, allocations: 29.06 kB / 467.4 MB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.381, allocations: 15.61 kB / 467.4 MB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002021/0.3812, allocations: 0.5583 MB / 467.9 MB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3812, allocations: 1.641 kB / 467.9 MB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.3818, allocations: 0.6222 MB / 468.6 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.225e-05/0.3819, allocations: 122.1 kB / 468.7 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.3819, allocations: 6.938 kB / 468.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.3821, allocations: 11.06 kB / 468.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.3821, allocations: 28.66 kB / 468.7 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.3822, allocations: 8.875 kB / 468.7 MB, free: 39.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.3824, allocations: 267.4 kB / 469 MB, free: 39.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3824, allocations: 0 / 469 MB, free: 39.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.3829, allocations: 134.5 kB / 469.1 MB, free: 39.66 MB / 382.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 (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.0001415/0.383, allocations: 116.3 kB / 469.3 MB, free: 39.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005397/0.3836, allocations: 336 kB / 469.6 MB, free: 39.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3836, allocations: 0 / 469.6 MB, free: 39.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.3838, allocations: 139.8 kB / 469.7 MB, free: 39.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.3842, allocations: 72.61 kB / 469.8 MB, free: 39.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.3864, allocations: 2.05 MB / 471.8 MB, free: 37.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.3868, allocations: 0.9836 MB / 472.8 MB, free: 37.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.387, allocations: 59.58 kB / 472.9 MB, free: 37.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.075e-05/0.387, allocations: 42.14 kB / 472.9 MB, free: 37.23 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3871, allocations: 4 kB / 472.9 MB, free: 37.23 MB / 382.1 MB Notification: Performance of Templates: time 0.007268/0.3943, allocations: 3.817 MB / 476.7 MB, free: 36.89 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches