Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_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.001137/0.001137, allocations: 103.8 kB / 16.27 MB, free: 5.941 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.001109/0.001109, allocations: 192.1 kB / 17.2 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1754/0.1754, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 67.98 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07531/0.07662, allocations: 57.8 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005033/0.08169, allocations: 5.749 MB / 446.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003693/0.08541, allocations: 2.326 MB / 448.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006716/0.08611, allocations: 39.75 kB / 448.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000488/0.08667, allocations: 226 kB / 449 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.08708, allocations: 178.3 kB / 449.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009383/0.08802, allocations: 462.9 kB / 449.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009401/0.08898, allocations: 1.11 MB / 450.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007324/0.08972, allocations: 0.6263 MB / 451.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.09007, allocations: 362.7 kB / 451.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.09045, allocations: 382.1 kB / 452 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.09056, allocations: 99.94 kB / 452.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002309/0.09079, allocations: 155.9 kB / 452.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.09097, allocations: 211.3 kB / 452.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003394/0.09131, allocations: 473.6 kB / 453 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009299/0.09225, allocations: 1.234 MB / 454.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.09227, allocations: 0 / 454.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09227, allocations: 0 / 454.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.09229, allocations: 0 / 454.2 MB, free: 9.152 MB / 334.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.001343/0.09364, allocations: 1.119 MB / 455.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.09368, allocations: 11.89 kB / 455.3 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.09382, allocations: 151.8 kB / 455.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.09396, allocations: 107.6 kB / 455.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006568/0.09462, allocations: 0.5707 MB / 456.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.424e-05/0.09469, allocations: 66 kB / 456.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.0948, allocations: 92 kB / 456.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.09606, allocations: 0.8852 MB / 457.2 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.0961, allocations: 7.938 kB / 457.2 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.09616, allocations: 44 kB / 457.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.09619, allocations: 20 kB / 457.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009058/0.0971, allocations: 0.5191 MB / 457.8 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003232/0.1003, allocations: 3.646 MB / 461.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004962/0.1009, allocations: 224.1 kB / 461.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.101, allocations: 100.8 kB / 461.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003005/0.1014, allocations: 259.3 kB / 462 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.1014, allocations: 31.06 kB / 462 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 3.145e-06/0.1014, allocations: 0 / 462 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002106/0.1035, allocations: 1.299 MB / 463.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.1036, allocations: 59.34 kB / 463.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.1039, allocations: 397.9 kB / 463.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.104, allocations: 33.7 kB / 463.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.1042, allocations: 470.1 kB / 464.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.1043, allocations: 134.1 kB / 464.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.1044, allocations: 98.16 kB / 464.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1046, allocations: 358.8 kB / 464.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.1048, allocations: 113.1 kB / 465 MB, free: 13.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.1051, allocations: 314.2 kB / 465.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005041/0.1056, allocations: 452.5 kB / 465.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1056, allocations: 4 kB / 465.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007048/0.1063, allocations: 0.5131 MB / 466.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1063, allocations: 4 kB / 466.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.1064, allocations: 11.94 kB / 466.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.1065, allocations: 40.78 kB / 466.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/0.1069, allocations: 127.8 kB / 466.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003372/0.1072, allocations: 0.5603 MB / 467 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.1074, allocations: 16 kB / 467 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/0.1075, allocations: 31.98 kB / 467 MB, free: 11.6 MB / 350.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.0002488/0.1077, allocations: 221.7 kB / 467.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.837e-05/0.1078, allocations: 55.28 kB / 467.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005491/0.1084, allocations: 335.3 kB / 467.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1084, allocations: 4 kB / 467.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1084, allocations: 0 / 467.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1084, allocations: 3.984 kB / 467.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.1096, allocations: 1.057 MB / 468.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1097, allocations: 4 kB / 468.7 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.11, allocations: 83.89 kB / 468.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001082/0.1101, allocations: 32.78 kB / 468.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1101, allocations: 12 kB / 468.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002726/0.1104, allocations: 0.5525 MB / 469.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1104, allocations: 3.938 kB / 469.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007063/0.1111, allocations: 0.5631 MB / 469.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.249e-05/0.1112, allocations: 116.5 kB / 470 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.1113, allocations: 8 kB / 470 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.1114, allocations: 8 kB / 470 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.1115, allocations: 27.91 kB / 470.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.1115, allocations: 15.98 kB / 470.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002282/0.1117, allocations: 267.2 kB / 470.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1117, allocations: 0 / 470.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.1122, allocations: 136 kB / 470.5 MB, free: 7.938 MB / 350.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.001006/0.1132, allocations: 1.108 MB / 471.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006297/0.1139, allocations: 343.9 kB / 471.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1139, allocations: 3.938 kB / 471.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002317/0.1141, allocations: 146.4 kB / 472.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.1146, allocations: 77.94 kB / 472.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006229/0.1208, allocations: 4.877 MB / 477 MB, free: 1.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.1215, allocations: 0.9561 MB / 478 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.1217, allocations: 64.48 kB / 478 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.122, allocations: 291.8 kB / 478.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.324e-06/0.122, allocations: 0 / 478.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1379/0.2599, allocations: 9.144 MB / 487.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/13.87, allocations: 11.8 kB / 487.5 MB, free: 6.609 MB / 366.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches