Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.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.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities",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.001132/0.001132, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001135/0.001135, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.382/1.382, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.2357/0.2357, allocations: 44.17 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 58.34 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities): time 0.003704/0.1196, allocations: 1.846 MB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004717/0.1201, allocations: 143.5 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1203, allocations: 4 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.961e-05/0.1204, allocations: 31.72 kB / 471.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.1206, allocations: 55.48 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.1208, allocations: 39.95 kB / 471.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.121, allocations: 187.1 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.1212, allocations: 56.3 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.1214, allocations: 67.8 kB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.1215, allocations: 67.7 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.1215, allocations: 16 kB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.757e-05/0.1216, allocations: 16 kB / 471.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/0.1216, allocations: 39.83 kB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.246e-05/0.1217, allocations: 83.67 kB / 472 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.1219, allocations: 183.5 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.122, allocations: 0 / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.122, allocations: 0 / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.122, allocations: 0 / 472.2 MB, free: 11.45 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006297/0.1226, allocations: 451.3 kB / 472.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.1227, allocations: 8.031 kB / 472.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.913e-05/0.1227, allocations: 46.73 kB / 472.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.1228, allocations: 24.66 kB / 472.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.123, allocations: 208.2 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.123, allocations: 8.703 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.1231, allocations: 24.28 kB / 472.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.1234, allocations: 170.1 kB / 473.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.1234, allocations: 3.938 kB / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.1235, allocations: 8 kB / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1235, allocations: 8 kB / 473.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.1236, allocations: 79.95 kB / 473.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.1245, allocations: 0.6228 MB / 473.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.1247, allocations: 129.1 kB / 473.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.783e-05/0.1248, allocations: 49.7 kB / 474 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.1248, allocations: 7.938 kB / 474 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.1249, allocations: 38.69 kB / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.1249, allocations: 0 / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007865/0.1257, allocations: 381.5 kB / 474.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.1257, allocations: 85.11 kB / 474.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.1259, allocations: 130 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.1259, allocations: 29.7 kB / 474.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.126, allocations: 128 kB / 474.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.126, allocations: 55.19 kB / 474.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.1261, allocations: 41.7 kB / 474.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1262, allocations: 322.8 kB / 475.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.145e-05/0.1263, allocations: 35.98 kB / 475.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.1264, allocations: 106.2 kB / 475.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.1266, allocations: 160.4 kB / 475.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1266, allocations: 4 kB / 475.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003621/0.127, allocations: 227.1 kB / 475.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.127, allocations: 4 kB / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.127, allocations: 4 kB / 475.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/0.1272, allocations: 61.86 kB / 475.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.1274, allocations: 31.98 kB / 475.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.1296, allocations: 2.982 MB / 478.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.28e-05/0.1297, allocations: 15.84 kB / 478.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1297, allocations: 8.125 kB / 478.8 MB, free: 4.148 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.1299, allocations: 141.8 kB / 478.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.1299, allocations: 7.906 kB / 478.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.608e-05/0.13, allocations: 20.66 kB / 479 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.13, allocations: 0 / 479 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.13, allocations: 4 kB / 479 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.13, allocations: 192 / 479 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.1303, allocations: 233.5 kB / 479.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1303, allocations: 11.94 kB / 479.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.1305, allocations: 27.98 kB / 479.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.1306, allocations: 45.64 kB / 479.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1306, allocations: 15.92 kB / 479.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.1327, allocations: 2.978 MB / 482.3 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1327, allocations: 3.938 kB / 482.3 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004058/0.1331, allocations: 368.2 kB / 482.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.1332, allocations: 88.95 kB / 482.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.1332, allocations: 8.062 kB / 482.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1333, allocations: 8 kB / 482.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.1334, allocations: 11.98 kB / 482.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1334, allocations: 4 kB / 482.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.373e-05/0.1335, allocations: 103.2 kB / 482.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1335, allocations: 0 / 482.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004464/0.1339, allocations: 51.91 kB / 482.9 MB, free: 15.65 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (inertia1.w,inertia2.phi,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006889/0.1346, allocations: 0.9046 MB / 483.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.1352, allocations: 353.5 kB / 484.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.1352, allocations: 0 / 484.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.1356, allocations: 289.2 kB / 484.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.1361, allocations: 38.02 kB / 484.5 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.1387, allocations: 2.32 MB / 486.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.139, allocations: 0.7242 MB / 487.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.216e-05/0.1391, allocations: 5.438 kB / 487.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.1392, allocations: 43.42 kB / 487.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1392, allocations: 0 / 487.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.1668, allocations: 3.665 MB / 491.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.18, allocations: 24.36 kB / 491.3 MB, free: 7.199 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_ConnectionPossibilities.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/ConnectionPossibilities/ConnectionPossibilities.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.ConnectionPossibilities.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches