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.0009393/0.0009391, allocations: 97.02 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 184.9 kB / 16.92 MB, free: 6.934 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.384/1.384, allocations: 205.4 MB / 223.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.349/0.349, allocations: 43.57 MB / 315 MB, free: 8.73 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.0006091/0.0006088, allocations: 12.52 kB / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1206, allocations: 58.87 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006241/0.1268, allocations: 5.28 MB / 448.8 MB, free: 7.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.131, allocations: 2.252 MB / 451.1 MB, free: 5.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009815/0.132, allocations: 39.75 kB / 451.1 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005466/0.1325, allocations: 182.6 kB / 451.3 MB, free: 4.805 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000827/0.1334, allocations: 154.7 kB / 451.4 MB, free: 4.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1346, allocations: 383.4 kB / 451.8 MB, free: 4.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.1359, allocations: 1.036 MB / 452.9 MB, free: 3.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008742/0.1368, allocations: 0.5636 MB / 453.4 MB, free: 2.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004512/0.1373, allocations: 266.7 kB / 453.7 MB, free: 2.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004239/0.1377, allocations: 306.1 kB / 454 MB, free: 2.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.393e-05/0.1378, allocations: 32 kB / 454 MB, free: 2.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002629/0.1381, allocations: 83.92 kB / 454.1 MB, free: 1.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.1382, allocations: 139.3 kB / 454.2 MB, free: 1.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003933/0.1386, allocations: 415.4 kB / 454.6 MB, free: 1.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.1397, allocations: 1.125 MB / 455.8 MB, free: 304 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1397, allocations: 0 / 455.8 MB, free: 304 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1397, allocations: 0 / 455.8 MB, free: 304 kB / 382.1 MB Notification: Performance of Transformations before backend: time 3.614e-05/0.1397, allocations: 0 / 455.8 MB, free: 304 kB / 382.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.1845/0.3242, allocations: 0.9481 MB / 456.7 MB, free: 45.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3243, allocations: 11.34 kB / 456.7 MB, free: 45.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.3244, allocations: 145.4 kB / 456.9 MB, free: 45.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.3246, allocations: 104.2 kB / 457 MB, free: 45.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.3252, allocations: 0.5653 MB / 457.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.3252, allocations: 65.72 kB / 457.6 MB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.503e-05/0.3253, allocations: 91.59 kB / 457.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3266, allocations: 0.8954 MB / 458.6 MB, free: 45.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.3266, allocations: 7.031 kB / 458.6 MB, free: 45.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.3267, allocations: 44.08 kB / 458.6 MB, free: 45.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.3267, allocations: 23.97 kB / 458.6 MB, free: 45.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008645/0.3276, allocations: 0.5221 MB / 459.2 MB, free: 45.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.3304, allocations: 3.644 MB / 462.8 MB, free: 43.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/0.3309, allocations: 228.4 kB / 463 MB, free: 43.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.331, allocations: 107.2 kB / 463.1 MB, free: 43.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000188/0.3312, allocations: 248 kB / 463.4 MB, free: 42.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.3313, allocations: 37.03 kB / 463.4 MB, free: 42.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.3313, allocations: 0 / 463.4 MB, free: 42.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.002091/0.3334, allocations: 1.308 MB / 464.7 MB, free: 42.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.3334, allocations: 58.22 kB / 464.8 MB, free: 42.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.3338, allocations: 400.7 kB / 465.2 MB, free: 41.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.3339, allocations: 33.81 kB / 465.2 MB, free: 41.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.334, allocations: 469.8 kB / 465.7 MB, free: 41.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.73e-05/0.3341, allocations: 143.6 kB / 465.8 MB, free: 41.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.3342, allocations: 52.41 kB / 465.9 MB, free: 41.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.695e-05/0.3343, allocations: 359.6 kB / 466.2 MB, free: 41.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.3345, allocations: 113.1 kB / 466.3 MB, free: 41.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.3347, allocations: 313.8 kB / 466.6 MB, free: 40.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.3351, allocations: 460.9 kB / 467.1 MB, free: 40.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3351, allocations: 6.781 kB / 467.1 MB, free: 40.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006462/0.3358, allocations: 0.5151 MB / 467.6 MB, free: 40.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3358, allocations: 6 kB / 467.6 MB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3358, allocations: 5.969 kB / 467.6 MB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000181/0.336, allocations: 38.58 kB / 467.6 MB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003394/0.3364, allocations: 128.4 kB / 467.8 MB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002811/0.3367, allocations: 0.5688 MB / 468.3 MB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.3369, allocations: 23.53 kB / 468.4 MB, free: 40.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.3369, allocations: 30.02 kB / 468.4 MB, free: 40.04 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.000281/0.3372, allocations: 226 kB / 468.6 MB, free: 39.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.3373, allocations: 50.84 kB / 468.7 MB, free: 39.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00056/0.3378, allocations: 334.3 kB / 469 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3379, allocations: 6.719 kB / 469 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3379, allocations: 0 / 469 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3379, allocations: 0 / 469 MB, free: 39.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.3393, allocations: 1.058 MB / 470.1 MB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3393, allocations: 0 / 470.1 MB, free: 39.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.3396, allocations: 83.89 kB / 470.1 MB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.3398, allocations: 38.17 kB / 470.2 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.3398, allocations: 6.906 kB / 470.2 MB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002313/0.34, allocations: 0.549 MB / 470.7 MB, free: 38.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3401, allocations: 7.094 kB / 470.7 MB, free: 38.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006391/0.3407, allocations: 0.5656 MB / 471.3 MB, free: 38.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.3408, allocations: 116.8 kB / 471.4 MB, free: 38.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.872e-05/0.3408, allocations: 17.77 kB / 471.4 MB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.341, allocations: 10.42 kB / 471.4 MB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/0.3411, allocations: 22.84 kB / 471.5 MB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.3411, allocations: 9.125 kB / 471.5 MB, free: 38.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002271/0.3413, allocations: 272 kB / 471.7 MB, free: 38.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3413, allocations: 0 / 471.7 MB, free: 38.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.3418, allocations: 129.2 kB / 471.9 MB, free: 38.14 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.0008627/0.3427, allocations: 1.117 MB / 473 MB, free: 37.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005272/0.3432, allocations: 337.3 kB / 473.3 MB, free: 37.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3433, allocations: 0 / 473.3 MB, free: 37.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.3435, allocations: 144.6 kB / 473.5 MB, free: 37.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005896/0.3441, allocations: 75.64 kB / 473.5 MB, free: 37.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/0.3494, allocations: 5.4 MB / 478.9 MB, free: 33.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3497, allocations: 0.9596 MB / 479.9 MB, free: 32.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.3499, allocations: 64.92 kB / 480 MB, free: 32.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.3502, allocations: 295.7 kB / 480.2 MB, free: 32.35 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3502, allocations: 4 kB / 480.2 MB, free: 32.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1633/0.5135, allocations: 8.669 MB / 488.9 MB, free: 31.54 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002129/0.5137, allocations: 234.3 kB / 489.1 MB, free: 31.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.48, allocations: 0 / 489.1 MB, free: 31.27 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches