Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 105.3 kB / 17.2 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.8 MB, free: 13.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.16 MB / 336.1 MB, free: 2.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 61.06 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 60.83 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006477/0.1236, allocations: 5.734 MB / 474.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003578/0.1272, allocations: 2.255 MB / 476.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004416/0.1277, allocations: 43.75 kB / 476.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.1281, allocations: 182.6 kB / 476.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.1285, allocations: 142.8 kB / 477 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007669/0.1293, allocations: 395.4 kB / 477.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008653/0.1301, allocations: 1.044 MB / 478.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006684/0.1308, allocations: 0.5517 MB / 478.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002995/0.1311, allocations: 318.6 kB / 479.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.1314, allocations: 366.1 kB / 479.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.177e-05/0.1315, allocations: 52 kB / 479.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1317, allocations: 115.9 kB / 479.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1319, allocations: 171.3 kB / 479.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003256/0.1322, allocations: 433.6 kB / 480.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008852/0.1331, allocations: 1.164 MB / 481.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1331, allocations: 0 / 481.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1331, allocations: 0 / 481.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.1332, allocations: 3.938 kB / 481.5 MB, free: 1.758 MB / 350.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.001372/0.1345, allocations: 1.129 MB / 482.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1346, allocations: 8.031 kB / 482.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.1347, allocations: 147.8 kB / 482.8 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1349, allocations: 103.7 kB / 482.9 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.1355, allocations: 0.5668 MB / 483.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.1356, allocations: 70 kB / 483.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1357, allocations: 91.91 kB / 483.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.1371, allocations: 0.8931 MB / 484.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.1372, allocations: 11.84 kB / 484.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.1372, allocations: 36 kB / 484.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.1373, allocations: 24 kB / 484.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009634/0.1382, allocations: 0.5229 MB / 485.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003293/0.1415, allocations: 3.639 MB / 488.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005159/0.1421, allocations: 222.6 kB / 489 MB, free: 9.977 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.1423, allocations: 100.8 kB / 489.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002616/0.1425, allocations: 255.2 kB / 489.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.1426, allocations: 34.5 kB / 489.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.013e-06/0.1426, allocations: 4 kB / 489.4 MB, free: 9.523 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.00229/0.1449, allocations: 1.288 MB / 490.7 MB, free: 8.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.1449, allocations: 55.34 kB / 490.7 MB, free: 8.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/0.1453, allocations: 409.8 kB / 491.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.1453, allocations: 29.7 kB / 491.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.1456, allocations: 470.1 kB / 491.6 MB, free: 7.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.128e-05/0.1457, allocations: 134 kB / 491.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1458, allocations: 94.16 kB / 491.8 MB, free: 6.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.146, allocations: 362.8 kB / 492.2 MB, free: 6.566 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.1462, allocations: 113.1 kB / 492.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.1465, allocations: 310.2 kB / 492.6 MB, free: 6.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005478/0.1471, allocations: 460.7 kB / 493 MB, free: 5.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1471, allocations: 4 kB / 493.1 MB, free: 5.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007617/0.1479, allocations: 0.5091 MB / 493.6 MB, free: 5.012 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1479, allocations: 8 kB / 493.6 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.1479, allocations: 8 kB / 493.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/0.1481, allocations: 44.77 kB / 493.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.1485, allocations: 123.8 kB / 493.7 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003557/0.1488, allocations: 0.5605 MB / 494.3 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.1491, allocations: 23.92 kB / 494.3 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.1491, allocations: 28 kB / 494.4 MB, free: 4.191 MB / 366.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.0002731/0.1494, allocations: 225.6 kB / 494.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.066e-05/0.1495, allocations: 55.41 kB / 494.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006049/0.1501, allocations: 331.3 kB / 494.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1501, allocations: 0 / 494.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1501, allocations: 4 kB / 495 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1501, allocations: 3.984 kB / 495 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/0.1515, allocations: 1.05 MB / 496 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1515, allocations: 4 kB / 496 MB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.1519, allocations: 79.89 kB / 496.1 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.152, allocations: 36.78 kB / 496.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.152, allocations: 12 kB / 496.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002977/0.1523, allocations: 0.5525 MB / 496.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1523, allocations: 0 / 496.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007299/0.1531, allocations: 0.5743 MB / 497.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.1532, allocations: 112.5 kB / 497.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.1532, allocations: 8 kB / 497.4 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.1534, allocations: 11.98 kB / 497.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.447e-05/0.1535, allocations: 31.91 kB / 497.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.1535, allocations: 12 kB / 497.4 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002525/0.1537, allocations: 271.1 kB / 497.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1538, allocations: 0 / 497.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004957/0.1543, allocations: 128.1 kB / 497.8 MB, free: 0.5391 MB / 366.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.001025/0.1553, allocations: 1.106 MB / 498.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005736/0.1559, allocations: 332.3 kB / 499.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1559, allocations: 0 / 499.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.1562, allocations: 145.1 kB / 499.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.1567, allocations: 77.95 kB / 499.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006052/0.1627, allocations: 5.254 MB / 0.4929 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.1633, allocations: 0.9561 MB / 0.4938 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.1635, allocations: 56.55 kB / 0.4939 GB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.1638, allocations: 295.3 kB / 0.4942 GB, free: 7.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1638, allocations: 3.938 kB / 0.4942 GB, free: 7.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1999/0.3637, allocations: 8.802 MB / 0.5028 GB, free: 47.75 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.364, allocations: 220.4 kB / 0.503 GB, free: 47.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.381, allocations: 3 kB / 0.503 GB, free: 47.5 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches