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: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008451/0.0008451, allocations: 96.64 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009361/0.0009363, allocations: 206.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.7 MB / 246.8 MB, free: 9.543 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1964/0.1964, allocations: 46.19 MB / 345.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002847, allocations: 8 kB / 419.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 63.56 MB / 483.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005535/0.1095, allocations: 5.296 MB / 488.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.1132, allocations: 2.282 MB / 490.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007964/0.114, allocations: 43.75 kB / 490.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.1145, allocations: 178.7 kB / 491 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006805/0.1152, allocations: 146.7 kB / 491.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1163, allocations: 399.3 kB / 491.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.1176, allocations: 1.04 MB / 492.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008799/0.1185, allocations: 0.5517 MB / 493.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005158/0.119, allocations: 266.7 kB / 493.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.1195, allocations: 302.1 kB / 493.7 MB, free: 9.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.519e-05/0.1196, allocations: 36 kB / 493.7 MB, free: 9.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.1199, allocations: 95.91 kB / 493.8 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.12, allocations: 139.3 kB / 493.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000403/0.1204, allocations: 411.4 kB / 494.3 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1215, allocations: 1.137 MB / 495.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1215, allocations: 0 / 495.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1215, allocations: 0 / 495.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.523e-05/0.1215, allocations: 0 / 495.5 MB, free: 7.672 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.001448/0.123, allocations: 0.9629 MB / 496.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.123, allocations: 8.875 kB / 496.4 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.1232, allocations: 147.9 kB / 496.6 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/0.1235, allocations: 107.7 kB / 496.7 MB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000757/0.1243, allocations: 0.5707 MB / 497.2 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/0.1243, allocations: 69.94 kB / 497.3 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1245, allocations: 92 kB / 497.4 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.126, allocations: 0.8853 MB / 498.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.203e-05/0.1261, allocations: 11.84 kB / 498.3 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.406e-05/0.1261, allocations: 36 kB / 498.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.1262, allocations: 24 kB / 498.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.1273, allocations: 0.5307 MB / 498.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.1309, allocations: 3.646 MB / 0.4908 GB, free: 272 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.1315, allocations: 236.5 kB / 0.491 GB, free: 24 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.1317, allocations: 101.4 kB / 0.4911 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.132, allocations: 255.3 kB / 0.4913 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.132, allocations: 30.56 kB / 0.4914 GB, free: 15.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 3.867e-06/0.132, allocations: 3.938 kB / 0.4914 GB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002443/0.1345, allocations: 1.307 MB / 0.4926 GB, free: 14.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.1345, allocations: 59.34 kB / 0.4927 GB, free: 14.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004704/0.135, allocations: 401.8 kB / 0.4931 GB, free: 13.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.135, allocations: 33.7 kB / 0.4931 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/0.1354, allocations: 470 kB / 0.4936 GB, free: 13.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.1355, allocations: 134.1 kB / 0.4937 GB, free: 13.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.1356, allocations: 49.69 kB / 0.4937 GB, free: 13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1358, allocations: 362.8 kB / 0.4941 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.136, allocations: 121.1 kB / 0.4942 GB, free: 12.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.1364, allocations: 306.2 kB / 0.4945 GB, free: 12.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/0.1371, allocations: 467.4 kB / 0.4949 GB, free: 11.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1371, allocations: 0 / 0.4949 GB, free: 11.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009037/0.138, allocations: 0.5134 MB / 0.4954 GB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.138, allocations: 8 kB / 0.4954 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1381, allocations: 8.031 kB / 0.4954 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.1383, allocations: 36.84 kB / 0.4955 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.1387, allocations: 131.8 kB / 0.4956 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004213/0.1391, allocations: 0.5563 MB / 0.4962 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.1394, allocations: 16 kB / 0.4962 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/0.1394, allocations: 28 kB / 0.4962 GB, free: 10.27 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.0003776/0.1398, allocations: 233.6 kB / 0.4964 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/0.1399, allocations: 59.28 kB / 0.4965 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006598/0.1406, allocations: 327 kB / 0.4968 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1406, allocations: 8 kB / 0.4968 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1406, allocations: 0 / 0.4968 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1406, allocations: 0 / 0.4968 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.1422, allocations: 1.066 MB / 0.4978 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1422, allocations: 4 kB / 0.4978 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.1425, allocations: 83.89 kB / 0.4979 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/0.1427, allocations: 36.72 kB / 0.498 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.1427, allocations: 16 kB / 0.498 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002989/0.143, allocations: 0.5447 MB / 0.4985 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.143, allocations: 4.031 kB / 0.4985 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.1438, allocations: 0.5672 MB / 0.4991 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.129e-05/0.1439, allocations: 112.5 kB / 0.4992 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.1439, allocations: 11.94 kB / 0.4992 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.1441, allocations: 8 kB / 0.4992 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.449e-05/0.1442, allocations: 35.94 kB / 0.4992 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.1442, allocations: 19.98 kB / 0.4992 GB, free: 6.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.1445, allocations: 267.2 kB / 0.4995 GB, free: 6.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1445, allocations: 0 / 0.4995 GB, free: 6.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005608/0.145, allocations: 128 kB / 0.4996 GB, free: 6.59 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.001041/0.1461, allocations: 1.112 MB / 0.5007 GB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006068/0.1467, allocations: 332.9 kB / 0.501 GB, free: 5.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1467, allocations: 256 / 0.501 GB, free: 5.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002541/0.147, allocations: 151.8 kB / 0.5012 GB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.1476, allocations: 64.28 kB / 0.5012 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2062/0.3538, allocations: 5.418 MB / 0.5065 GB, free: 39.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005743/0.3544, allocations: 0.9579 MB / 0.5074 GB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002807/0.3547, allocations: 61.77 kB / 0.5075 GB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.3551, allocations: 298.6 kB / 0.5078 GB, free: 38.65 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3551, allocations: 0 / 0.5078 GB, free: 38.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06309/0.4182, allocations: 8.704 MB / 0.5163 GB, free: 37.48 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/0.4184, allocations: 228.9 kB / 0.5165 GB, free: 37.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.066/2.485, allocations: 0 / 0.5165 GB, free: 37.22 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > 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