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.0007998/0.0007998, allocations: 95.94 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009419/0.0009421, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.7 MB / 247.5 MB, free: 9.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1998/0.1998, allocations: 46.19 MB / 345.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.0002579, allocations: 8 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 63.56 MB / 483.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005973/0.1096, allocations: 5.292 MB / 489 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.1136, allocations: 2.286 MB / 491.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009331/0.1146, allocations: 39.75 kB / 491.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005705/0.1151, allocations: 174.7 kB / 491.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.1159, allocations: 146.8 kB / 491.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.117, allocations: 407.3 kB / 492.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.1184, allocations: 1.036 MB / 493.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008712/0.1193, allocations: 0.5556 MB / 493.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004778/0.1198, allocations: 266.7 kB / 493.9 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.1202, allocations: 302.2 kB / 494.2 MB, free: 9.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.262e-05/0.1203, allocations: 32 kB / 494.2 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1206, allocations: 91.92 kB / 494.3 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1207, allocations: 147.3 kB / 494.5 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.1211, allocations: 407.4 kB / 494.9 MB, free: 8.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009508/0.1221, allocations: 0.9429 MB / 495.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1221, allocations: 0 / 495.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1221, allocations: 0 / 495.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.915e-05/0.1221, allocations: 0 / 495.8 MB, free: 7.973 MB / 366.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.001624/0.1238, allocations: 0.9631 MB / 496.8 MB, free: 6.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1238, allocations: 8.875 kB / 496.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/0.1241, allocations: 119.6 kB / 496.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.125, allocations: 0.5708 MB / 497.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.792e-05/0.125, allocations: 66 kB / 497.5 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.1252, allocations: 95.98 kB / 497.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.1267, allocations: 0.8892 MB / 498.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.1268, allocations: 7.891 kB / 498.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.639e-05/0.1269, allocations: 40 kB / 498.6 MB, free: 5.062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.1269, allocations: 20 kB / 498.6 MB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.128, allocations: 0.5307 MB / 499.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00371/0.1317, allocations: 3.646 MB / 0.491 GB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005358/0.1322, allocations: 224.5 kB / 0.4912 GB, free: 488 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.1324, allocations: 109.3 kB / 0.4913 GB, free: 376 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002229/0.1327, allocations: 251.3 kB / 0.4915 GB, free: 68 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1327, allocations: 38.55 kB / 0.4916 GB, free: 20 kB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.814e-06/0.1327, allocations: 0 / 0.4916 GB, free: 20 kB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002436/0.1352, allocations: 1.308 MB / 0.4928 GB, free: 14.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.1352, allocations: 59.34 kB / 0.4929 GB, free: 14.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.1357, allocations: 405.8 kB / 0.4933 GB, free: 14.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1357, allocations: 33.69 kB / 0.4933 GB, free: 14.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.136, allocations: 466.1 kB / 0.4938 GB, free: 13.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.1361, allocations: 138 kB / 0.4939 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.208e-05/0.1362, allocations: 49.69 kB / 0.4939 GB, free: 13.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1363, allocations: 358.8 kB / 0.4943 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.1365, allocations: 113.1 kB / 0.4944 GB, free: 12.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.1369, allocations: 314.2 kB / 0.4947 GB, free: 12.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/0.1375, allocations: 467.4 kB / 0.4951 GB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1375, allocations: 4 kB / 0.4951 GB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008143/0.1383, allocations: 0.505 MB / 0.4956 GB, free: 11.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1384, allocations: 8 kB / 0.4956 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1384, allocations: 11.94 kB / 0.4957 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.1386, allocations: 41.56 kB / 0.4957 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003897/0.139, allocations: 135.8 kB / 0.4958 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003821/0.1394, allocations: 0.5562 MB / 0.4964 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.1396, allocations: 20 kB / 0.4964 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.1396, allocations: 24 kB / 0.4964 GB, free: 10.71 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 (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.0002968/0.1399, allocations: 233.6 kB / 0.4966 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.14, allocations: 55.34 kB / 0.4967 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006138/0.1406, allocations: 331 kB / 0.497 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1406, allocations: 4 kB / 0.497 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1407, allocations: 0 / 0.497 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.1407, allocations: 4.031 kB / 0.497 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.1422, allocations: 1.066 MB / 0.4981 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1422, allocations: 4.156 kB / 0.4981 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.1425, allocations: 79.84 kB / 0.4981 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.1427, allocations: 32.78 kB / 0.4982 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.1427, allocations: 19.98 kB / 0.4982 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003239/0.143, allocations: 0.5446 MB / 0.4987 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1431, allocations: 0 / 0.4987 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007534/0.1438, allocations: 0.5672 MB / 0.4993 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-05/0.1439, allocations: 120.5 kB / 0.4994 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.144, allocations: 8 kB / 0.4994 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.1441, allocations: 12 kB / 0.4994 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.1442, allocations: 23.91 kB / 0.4994 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1442, allocations: 12 kB / 0.4994 GB, free: 7.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002703/0.1445, allocations: 271.1 kB / 0.4997 GB, free: 7.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.1445, allocations: 4 kB / 0.4997 GB, free: 7.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005113/0.145, allocations: 124 kB / 0.4998 GB, free: 7.043 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 (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.0001511/0.1452, allocations: 115.3 kB / 0.4999 GB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006543/0.1458, allocations: 332.6 kB / 0.5002 GB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1458, allocations: 3.938 kB / 0.5002 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.1461, allocations: 144.9 kB / 0.5004 GB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005933/0.1467, allocations: 76.28 kB / 0.5005 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.1496, allocations: 2.186 MB / 0.5026 GB, free: 4.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.1502, allocations: 0.96 MB / 0.5035 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1503, allocations: 43.42 kB / 0.5036 GB, free: 3.109 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1504, allocations: 0 / 0.5036 GB, free: 3.109 MB / 382.1 MB Notification: Performance of Templates: time 0.1972/0.3476, allocations: 11.03 MB / 0.5143 GB, free: 38.51 MB / 382.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