Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001686/0.001686, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001819/0.001819, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2319/0.2319, allocations: 46.9 MB / 357.4 MB, free: 10.49 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002361/0.002361, allocations: 79.86 kB / 0.4912 GB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1291, allocations: 66 MB / 0.5557 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004715/0.1339, allocations: 2.855 MB / 0.5585 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.1357, allocations: 0.7829 MB / 0.5592 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00032/0.136, allocations: 11.94 kB / 0.5592 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.1362, allocations: 55.39 kB / 0.5593 GB, free: 2.488 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003926/0.1366, allocations: 130.9 kB / 0.5594 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.137, allocations: 103.8 kB / 0.5595 GB, free: 2.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006151/0.1376, allocations: 442 kB / 0.5599 GB, free: 1.824 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.1379, allocations: 113.6 kB / 0.5601 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003814/0.1383, allocations: 179.3 kB / 0.5602 GB, free: 1.527 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.1386, allocations: 175.2 kB / 0.5604 GB, free: 1.355 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.1386, allocations: 36 kB / 0.5604 GB, free: 1.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.1388, allocations: 36 kB / 0.5605 GB, free: 1.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.958e-05/0.1389, allocations: 83.69 kB / 0.5605 GB, free: 1.203 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.1391, allocations: 191.1 kB / 0.5607 GB, free: 1.016 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.1397, allocations: 446.1 kB / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1397, allocations: 0 / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1397, allocations: 0 / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1397, allocations: 0 / 0.5611 GB, free: 0.5781 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001211/0.1409, allocations: 0.6626 MB / 0.5618 GB, free: 15.87 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.141, allocations: 8.031 kB / 0.5618 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.819e-05/0.1411, allocations: 78.66 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.1413, allocations: 60.67 kB / 0.5619 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.1418, allocations: 291.6 kB / 0.5622 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.1419, allocations: 25.38 kB / 0.5622 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.1419, allocations: 48.33 kB / 0.5623 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007004/0.1426, allocations: 390.3 kB / 0.5627 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/0.1427, allocations: 7.953 kB / 0.5627 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.1427, allocations: 20 kB / 0.5627 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1427, allocations: 8 kB / 0.5627 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.1432, allocations: 222.6 kB / 0.5629 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.1458, allocations: 1.719 MB / 0.5646 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.1462, allocations: 254.3 kB / 0.5648 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1464, allocations: 90.08 kB / 0.5649 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.1464, allocations: 11.94 kB / 0.5649 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.1465, allocations: 42.55 kB / 0.565 GB, free: 12.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.294e-06/0.1465, allocations: 0 / 0.565 GB, free: 12.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007156/0.1472, allocations: 265.9 kB / 0.5652 GB, free: 12.08 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.1473, allocations: 213.6 kB / 0.5654 GB, free: 11.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.1476, allocations: 275.2 kB / 0.5657 GB, free: 11.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.1477, allocations: 29.7 kB / 0.5657 GB, free: 11.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.1479, allocations: 251.9 kB / 0.566 GB, free: 11.25 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.148, allocations: 123.1 kB / 0.5661 GB, free: 11.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1481, allocations: 102.2 kB / 0.5662 GB, free: 11.03 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1483, allocations: 354.7 kB / 0.5665 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.1485, allocations: 93.39 kB / 0.5666 GB, free: 10.58 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.149, allocations: 428.8 kB / 0.567 GB, free: 10 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007929/0.1498, allocations: 0.5784 MB / 0.5676 GB, free: 9.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.1498, allocations: 4 kB / 0.5676 GB, free: 9.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001003/0.1508, allocations: 0.5245 MB / 0.5681 GB, free: 8.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.1508, allocations: 11.98 kB / 0.5681 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.1509, allocations: 12 kB / 0.5681 GB, free: 8.707 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-05/0.1509, allocations: 16 kB / 0.5681 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.1514, allocations: 144.4 kB / 0.5683 GB, free: 8.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.939e-05/0.1514, allocations: 23.92 kB / 0.5683 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.1517, allocations: 67.56 kB / 0.5683 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.1518, allocations: 32 kB / 0.5684 GB, free: 8.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.152, allocations: 181.5 kB / 0.5685 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.1522, allocations: 39.81 kB / 0.5686 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.1522, allocations: 33.83 kB / 0.5686 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1522, allocations: 4 kB / 0.5686 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1522, allocations: 0 / 0.5686 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1522, allocations: 11.94 kB / 0.5686 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.1537, allocations: 0.6553 MB / 0.5693 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.954e-06/0.1537, allocations: 4 kB / 0.5693 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.1542, allocations: 83.89 kB / 0.5694 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.1542, allocations: 4 kB / 0.5694 GB, free: 7.348 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.1542, allocations: 15.98 kB / 0.5694 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.1542, allocations: 12 kB / 0.5694 GB, free: 7.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1542, allocations: 3.938 kB / 0.5694 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.1551, allocations: 0.8271 MB / 0.5702 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.1552, allocations: 108.8 kB / 0.5703 GB, free: 6.332 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.1553, allocations: 12.06 kB / 0.5703 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.1556, allocations: 19.98 kB / 0.5703 GB, free: 6.301 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.627e-05/0.1557, allocations: 20.17 kB / 0.5704 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1557, allocations: 11.98 kB / 0.5704 GB, free: 6.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.156, allocations: 190 kB / 0.5705 GB, free: 6.082 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.156, allocations: 0 / 0.5705 GB, free: 6.082 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007962/0.1568, allocations: 99.89 kB / 0.5706 GB, free: 5.984 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001323/0.1581, allocations: 1.396 MB / 0.572 GB, free: 4.551 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006431/0.1587, allocations: 285.3 kB / 0.5723 GB, free: 4.273 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1587, allocations: 0 / 0.5723 GB, free: 4.273 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.1589, allocations: 85.33 kB / 0.5724 GB, free: 4.191 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.1599, allocations: 72.45 kB / 0.5724 GB, free: 4.121 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.1668, allocations: 4.931 MB / 0.5772 GB, free: 14.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.1673, allocations: 0.8106 MB / 0.578 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.1675, allocations: 39.27 kB / 0.5781 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.1676, allocations: 119.4 kB / 0.5782 GB, free: 13.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.1676, allocations: 4 kB / 0.5782 GB, free: 13.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.2015, allocations: 6.715 MB / 0.5847 GB, free: 7.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.72/8.921, allocations: 14.12 kB / 0.5848 GB, free: 7.148 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.239128400105983]