Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001254/0.001254, allocations: 116.5 kB / 18.5 MB, free: 4.566 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.001301/0.001301, allocations: 212.9 kB / 21.46 MB, free: 1.605 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.406/1.406, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 59.91 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1012, allocations: 53.33 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006947/0.1081, allocations: 5.456 MB / 432.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.1118, allocations: 2.157 MB / 434.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005487/0.1123, allocations: 39.75 kB / 434.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004653/0.1128, allocations: 210.2 kB / 434.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003695/0.1131, allocations: 170.4 kB / 434.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009202/0.1141, allocations: 407 kB / 435.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.1151, allocations: 1.021 MB / 436.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006154/0.1157, allocations: 421.1 kB / 436.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004311/0.1161, allocations: 346.9 kB / 436.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003944/0.1165, allocations: 370.3 kB / 437.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1166, allocations: 92 kB / 437.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.1169, allocations: 155.9 kB / 437.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.1171, allocations: 207.4 kB / 437.7 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003743/0.1175, allocations: 430 kB / 438.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.1187, allocations: 1.194 MB / 439.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1187, allocations: 0 / 439.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1187, allocations: 0 / 439.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1187, allocations: 0 / 439.3 MB, free: 8.328 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00145/0.1201, allocations: 1.056 MB / 440.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1202, allocations: 16.02 kB / 440.3 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.1203, allocations: 135.5 kB / 440.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.1206, allocations: 96.38 kB / 440.6 MB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008387/0.1214, allocations: 0.53 MB / 441.1 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.1214, allocations: 62.36 kB / 441.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.1216, allocations: 96.33 kB / 441.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1229, allocations: 0.8007 MB / 442.1 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.1229, allocations: 0 / 442.1 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.123, allocations: 40 kB / 442.1 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.123, allocations: 20 kB / 442.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009338/0.1239, allocations: 0.4918 MB / 442.6 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003284/0.1272, allocations: 2.865 MB / 445.5 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.1277, allocations: 218.6 kB / 445.7 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.1279, allocations: 97.31 kB / 445.8 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002291/0.1281, allocations: 247.3 kB / 446 MB, free: 1.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.1282, allocations: 42.56 kB / 446.1 MB, free: 1.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.1282, allocations: 0 / 446.1 MB, free: 1.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.1856/0.3138, allocations: 1.256 MB / 447.3 MB, free: 24.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.3138, allocations: 55.41 kB / 447.4 MB, free: 24.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.3142, allocations: 315.2 kB / 447.7 MB, free: 24.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3142, allocations: 31.28 kB / 447.7 MB, free: 24.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.3145, allocations: 411.8 kB / 448.1 MB, free: 24.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.803e-05/0.3145, allocations: 138.8 kB / 448.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.3147, allocations: 87.41 kB / 448.3 MB, free: 24.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.3147, allocations: 356 kB / 448.7 MB, free: 23.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.3149, allocations: 104.3 kB / 448.8 MB, free: 23.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.3152, allocations: 249.5 kB / 449 MB, free: 23.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004293/0.3156, allocations: 395.6 kB / 449.4 MB, free: 23.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3156, allocations: 0 / 449.4 MB, free: 23.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006116/0.3162, allocations: 460.7 kB / 449.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3163, allocations: 9.469 kB / 449.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.3163, allocations: 6.719 kB / 449.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002051/0.3165, allocations: 36.12 kB / 449.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003343/0.3168, allocations: 109.9 kB / 450 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002779/0.3171, allocations: 0.5569 MB / 450.6 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.3173, allocations: 17.78 kB / 450.6 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.3173, allocations: 25.38 kB / 450.6 MB, free: 22.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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.0002569/0.3176, allocations: 222 kB / 450.8 MB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.3176, allocations: 37.48 kB / 450.9 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005651/0.3182, allocations: 331.5 kB / 451.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3182, allocations: 3.219 kB / 451.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3182, allocations: 5.031 kB / 451.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3182, allocations: 3.516 kB / 451.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.3195, allocations: 1.014 MB / 452.2 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3195, allocations: 1.094 kB / 452.2 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.3198, allocations: 81.16 kB / 452.3 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.3199, allocations: 32.8 kB / 452.3 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.32, allocations: 13.12 kB / 452.4 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002141/0.3202, allocations: 0.5526 MB / 452.9 MB, free: 21.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3202, allocations: 2.625 kB / 452.9 MB, free: 21.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000672/0.3209, allocations: 0.546 MB / 453.5 MB, free: 21.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.707e-05/0.3209, allocations: 107.8 kB / 453.6 MB, free: 21.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.321, allocations: 11.97 kB / 453.6 MB, free: 21.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.3211, allocations: 9.234 kB / 453.6 MB, free: 21.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.429e-05/0.3212, allocations: 25.2 kB / 453.6 MB, free: 21.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.3212, allocations: 15.31 kB / 453.6 MB, free: 21.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.3214, allocations: 214.4 kB / 453.8 MB, free: 21.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3214, allocations: 0 / 453.8 MB, free: 21.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005835/0.322, allocations: 122.2 kB / 453.9 MB, free: 21 MB / 366.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.phi,inertia2b.w,torqueToAngle2b.phi,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.0009241/0.3229, allocations: 1.098 MB / 455 MB, free: 20.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000604/0.3235, allocations: 300.7 kB / 455.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3235, allocations: 1.188 kB / 455.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.3237, allocations: 133.5 kB / 455.5 MB, free: 19.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.3243, allocations: 75.44 kB / 455.5 MB, free: 19.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.3295, allocations: 4.406 MB / 459.9 MB, free: 16.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004955/0.33, allocations: 0.9211 MB / 460.9 MB, free: 16.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.3302, allocations: 46.36 kB / 460.9 MB, free: 16.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.3305, allocations: 244.5 kB / 461.2 MB, free: 16.06 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3305, allocations: 4 kB / 461.2 MB, free: 16.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03858/0.369, allocations: 8.424 MB / 469.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.57, allocations: 4.344 kB / 469.6 MB, free: 14.53 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 15.161353423260152]