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.00106/0.00106, allocations: 106.9 kB / 17.33 MB, free: 6 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.001224/0.001224, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.381/1.381, allocations: 222.9 MB / 241.9 MB, free: 15.41 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.2187/0.2187, allocations: 44.18 MB / 336.3 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 64.3 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 60.83 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007396/0.1151, allocations: 5.724 MB / 474.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004069/0.1192, allocations: 2.228 MB / 476.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001336/0.1206, allocations: 39.75 kB / 476.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008111/0.1214, allocations: 182.6 kB / 477 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009874/0.1225, allocations: 146.8 kB / 477.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.1237, allocations: 399.4 kB / 477.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001171/0.1249, allocations: 1.106 MB / 478.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000817/0.1257, allocations: 0.6185 MB / 479.2 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.1262, allocations: 366.7 kB / 479.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004266/0.1266, allocations: 390 kB / 480 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.1267, allocations: 96 kB / 480.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.127, allocations: 155.9 kB / 480.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.1272, allocations: 211.3 kB / 480.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003663/0.1276, allocations: 473.6 kB / 480.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.1287, allocations: 1.227 MB / 482.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1287, allocations: 4 kB / 482.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1287, allocations: 0 / 482.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.1288, allocations: 0 / 482.1 MB, free: 1.262 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.0015/0.1303, allocations: 1.134 MB / 483.3 MB, free: 76 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.1303, allocations: 12.03 kB / 483.3 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001545/0.1305, allocations: 135.9 kB / 483.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.1306, allocations: 103.7 kB / 483.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007162/0.1314, allocations: 0.563 MB / 484.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.256e-05/0.1314, allocations: 66 kB / 484.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1316, allocations: 99.91 kB / 484.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.133, allocations: 0.8892 MB / 485.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.133, allocations: 11.84 kB / 485.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.249e-05/0.1331, allocations: 40 kB / 485.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.1331, allocations: 24 kB / 485.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009521/0.1341, allocations: 0.5268 MB / 485.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003381/0.1375, allocations: 3.639 MB / 489.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000509/0.138, allocations: 225.6 kB / 489.6 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1382, allocations: 108.8 kB / 489.7 MB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/0.1385, allocations: 251.2 kB / 489.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.1385, allocations: 38.5 kB / 490 MB, free: 9.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.184e-06/0.1385, allocations: 0 / 490 MB, free: 9.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002378/0.1409, allocations: 1.289 MB / 491.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.1409, allocations: 59.34 kB / 491.3 MB, free: 7.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003835/0.1413, allocations: 401.8 kB / 491.7 MB, free: 7.168 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1414, allocations: 33.7 kB / 491.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.1416, allocations: 466.1 kB / 492.2 MB, free: 6.664 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.188e-05/0.1417, allocations: 138 kB / 492.3 MB, free: 6.527 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.1419, allocations: 102.2 kB / 492.4 MB, free: 6.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.142, allocations: 362.8 kB / 492.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.1422, allocations: 109.1 kB / 492.9 MB, free: 5.949 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.1425, allocations: 306.2 kB / 493.2 MB, free: 5.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005537/0.1431, allocations: 464.7 kB / 493.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1431, allocations: 0 / 493.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007691/0.1439, allocations: 0.5124 MB / 494.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.1439, allocations: 8.844 kB / 494.2 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.1439, allocations: 4 kB / 494.2 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.1442, allocations: 44.84 kB / 494.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.1446, allocations: 127.8 kB / 494.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003821/0.1449, allocations: 0.5602 MB / 494.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1452, allocations: 16 kB / 494.9 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.1452, allocations: 24 kB / 494.9 MB, free: 3.695 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.0002904/0.1455, allocations: 229.7 kB / 495.2 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.1456, allocations: 51.38 kB / 495.2 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006137/0.1462, allocations: 339.1 kB / 495.5 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1462, allocations: 7.984 kB / 495.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1463, allocations: 0 / 495.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1463, allocations: 0 / 495.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.1477, allocations: 1.05 MB / 496.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1478, allocations: 0 / 496.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.1481, allocations: 88.05 kB / 496.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.1483, allocations: 32.78 kB / 496.7 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/0.1483, allocations: 15.98 kB / 496.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003193/0.1486, allocations: 0.5445 MB / 497.3 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1487, allocations: 7.969 kB / 497.3 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.1494, allocations: 0.5625 MB / 497.9 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.428e-05/0.1495, allocations: 116.5 kB / 498 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.1496, allocations: 15.98 kB / 498 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1498, allocations: 4 kB / 498 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.1498, allocations: 35.94 kB / 498 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.1499, allocations: 16 kB / 498 MB, free: 424 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002729/0.1501, allocations: 271.1 kB / 498.3 MB, free: 160 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1501, allocations: 0 / 498.3 MB, free: 160 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005591/0.1507, allocations: 120 kB / 498.4 MB, free: 40 kB / 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.001122/0.1518, allocations: 1.114 MB / 499.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007072/0.1526, allocations: 347.3 kB / 499.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.1526, allocations: 4.062 kB / 499.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.1528, allocations: 139.8 kB / 0.4883 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.1534, allocations: 72.75 kB / 0.4884 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006824/0.1602, allocations: 5.266 MB / 0.4935 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005475/0.1608, allocations: 0.9561 MB / 0.4944 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002093/0.161, allocations: 64.31 kB / 0.4945 GB, free: 7.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.1614, allocations: 291.7 kB / 0.4948 GB, free: 7.453 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1614, allocations: 0 / 0.4948 GB, free: 7.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2187/0.3801, allocations: 9.002 MB / 0.5036 GB, free: 49.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.3804, allocations: 221.8 kB / 0.5038 GB, free: 49.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.539, allocations: 0 / 0.5038 GB, free: 49.21 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