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.001369/0.001369, allocations: 102.9 kB / 15.98 MB, free: 6.34 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.001431/0.001431, allocations: 195 kB / 16.91 MB, free: 6.18 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.483/1.483, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.3382/0.3382, allocations: 43.49 MB / 313.6 MB, free: 8.234 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.001413/0.001413, allocations: 63.91 kB / 382.3 MB, free: 8.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 57.79 MB / 440.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007323/0.1301, allocations: 5.735 MB / 445.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004241/0.1344, allocations: 2.271 MB / 448.1 MB, free: 6.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000675/0.1351, allocations: 35.81 kB / 448.1 MB, free: 6.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.1356, allocations: 182.6 kB / 448.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.136, allocations: 150.8 kB / 448.5 MB, free: 6.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009635/0.137, allocations: 403.4 kB / 448.9 MB, free: 5.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009939/0.138, allocations: 1.103 MB / 450 MB, free: 4.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008001/0.1388, allocations: 0.6227 MB / 450.6 MB, free: 3.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.1392, allocations: 366.6 kB / 450.9 MB, free: 3.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.1396, allocations: 394 kB / 451.3 MB, free: 3.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.1397, allocations: 92 kB / 451.4 MB, free: 3.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.14, allocations: 155.9 kB / 451.6 MB, free: 2.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.1402, allocations: 211.3 kB / 451.8 MB, free: 2.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003797/0.1406, allocations: 473.6 kB / 452.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009904/0.1416, allocations: 1.226 MB / 453.5 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1416, allocations: 4 kB / 453.5 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1416, allocations: 4 kB / 453.5 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.1416, allocations: 0 / 453.5 MB, free: 0.9727 MB / 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.178/0.3196, allocations: 1.122 MB / 454.6 MB, free: 48.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3197, allocations: 11.86 kB / 454.6 MB, free: 48.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.3198, allocations: 144.5 kB / 454.7 MB, free: 48.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.32, allocations: 101.2 kB / 454.8 MB, free: 48.81 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.3206, allocations: 0.5561 MB / 455.4 MB, free: 48.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.601e-05/0.3207, allocations: 71.16 kB / 455.5 MB, free: 48.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.3208, allocations: 95.28 kB / 455.6 MB, free: 48.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.3221, allocations: 0.8881 MB / 456.5 MB, free: 48.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.3221, allocations: 13.97 kB / 456.5 MB, free: 48.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.3222, allocations: 36.62 kB / 456.5 MB, free: 48.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3222, allocations: 24.38 kB / 456.5 MB, free: 48.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/0.3231, allocations: 0.5259 MB / 457.1 MB, free: 48.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3262, allocations: 3.647 MB / 460.7 MB, free: 46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.3267, allocations: 219.6 kB / 460.9 MB, free: 45.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.3268, allocations: 106.5 kB / 461 MB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/0.3271, allocations: 253.2 kB / 461.3 MB, free: 45.58 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.3271, allocations: 30.56 kB / 461.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.405e-06/0.3271, allocations: 0 / 461.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001943/0.329, allocations: 1.305 MB / 462.6 MB, free: 44.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.3291, allocations: 54.19 kB / 462.7 MB, free: 44.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.3294, allocations: 400.7 kB / 463 MB, free: 44.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.3294, allocations: 35.95 kB / 463.1 MB, free: 44.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.3296, allocations: 464.1 kB / 463.5 MB, free: 44.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.571e-05/0.3297, allocations: 144.5 kB / 463.7 MB, free: 43.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.3298, allocations: 96.33 kB / 463.8 MB, free: 43.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.779e-05/0.3299, allocations: 361.4 kB / 464.1 MB, free: 43.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.33, allocations: 115.7 kB / 464.2 MB, free: 43.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.3303, allocations: 302.8 kB / 464.5 MB, free: 43.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.3308, allocations: 465.9 kB / 465 MB, free: 42.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3308, allocations: 6.844 kB / 465 MB, free: 42.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006505/0.3314, allocations: 0.5068 MB / 465.5 MB, free: 42.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3315, allocations: 8.281 kB / 465.5 MB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3315, allocations: 9.531 kB / 465.5 MB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.3317, allocations: 35.69 kB / 465.5 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.332, allocations: 125.1 kB / 465.7 MB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002769/0.3323, allocations: 0.5537 MB / 466.2 MB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.3325, allocations: 24.47 kB / 466.2 MB, free: 42.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.3326, allocations: 30.06 kB / 466.3 MB, free: 42.07 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.0002586/0.3328, allocations: 231.9 kB / 466.5 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.3329, allocations: 45.94 kB / 466.5 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000524/0.3334, allocations: 323.7 kB / 466.9 MB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.3334, allocations: 9.906 kB / 466.9 MB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3335, allocations: 8.344 kB / 466.9 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3335, allocations: 0 / 466.9 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.3346, allocations: 1.054 MB / 467.9 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3347, allocations: 1.75 kB / 467.9 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.335, allocations: 80.41 kB / 468 MB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.3351, allocations: 37.78 kB / 468.1 MB, free: 41.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.3352, allocations: 7.094 kB / 468.1 MB, free: 41.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000202/0.3354, allocations: 0.5577 MB / 468.6 MB, free: 40.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3354, allocations: 4.125 kB / 468.6 MB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006106/0.336, allocations: 0.555 MB / 469.2 MB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.3361, allocations: 121.4 kB / 469.3 MB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.173e-05/0.3361, allocations: 12.97 kB / 469.3 MB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.3363, allocations: 7.062 kB / 469.3 MB, free: 40.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.3363, allocations: 27.23 kB / 469.3 MB, free: 40.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.3364, allocations: 11.84 kB / 469.4 MB, free: 40.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.3366, allocations: 266.5 kB / 469.6 MB, free: 39.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3366, allocations: 0 / 469.6 MB, free: 39.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000545/0.3372, allocations: 134.2 kB / 469.7 MB, free: 39.88 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.0009279/0.3381, allocations: 1.118 MB / 470.9 MB, free: 39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000617/0.3387, allocations: 343.4 kB / 471.2 MB, free: 38.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3388, allocations: 3 kB / 471.2 MB, free: 38.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002306/0.339, allocations: 142.9 kB / 471.3 MB, free: 38.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.3395, allocations: 73.7 kB / 471.4 MB, free: 38.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005603/0.3451, allocations: 5.259 MB / 476.7 MB, free: 35.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.3456, allocations: 0.961 MB / 477.6 MB, free: 34.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.3459, allocations: 58.75 kB / 477.7 MB, free: 34.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/0.3462, allocations: 291.9 kB / 478 MB, free: 34.15 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3462, allocations: 4 kB / 478 MB, free: 34.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.3725, allocations: 9.007 MB / 487 MB, free: 33.18 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.3727, allocations: 223.6 kB / 487.2 MB, free: 32.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.369, allocations: 0.9844 kB / 487.2 MB, free: 32.92 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