Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.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) 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.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_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.001373/0.001373, allocations: 117.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 63.61 kB / 306.6 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0964/0.09757, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005701/0.1033, allocations: 4.591 MB / 361.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.1058, allocations: 1.368 MB / 363 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003094/0.1062, allocations: 23.88 kB / 363.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000386/0.1066, allocations: 130.9 kB / 363.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.1069, allocations: 130.8 kB / 363.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.1076, allocations: 335.7 kB / 363.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1086, allocations: 0.9743 MB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005127/0.1091, allocations: 422.9 kB / 365 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003953/0.1095, allocations: 334.5 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.1099, allocations: 349.9 kB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.883e-05/0.1101, allocations: 76 kB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.1103, allocations: 115.9 kB / 365.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.1104, allocations: 175.3 kB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003479/0.1108, allocations: 429.5 kB / 366.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008461/0.1116, allocations: 1.055 MB / 367.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1116, allocations: 0 / 367.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1116, allocations: 0 / 367.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.1117, allocations: 0 / 367.5 MB, free: 3.562 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001566/0.1132, allocations: 1.152 MB / 368.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1133, allocations: 12.02 kB / 368.7 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.1134, allocations: 123 kB / 368.8 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.1137, allocations: 114.7 kB / 368.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008313/0.1145, allocations: 0.6033 MB / 369.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.1146, allocations: 58 kB / 369.6 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.1147, allocations: 80 kB / 369.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1159, allocations: 0.8442 MB / 370.5 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.389e-05/0.116, allocations: 11.84 kB / 370.5 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.338e-05/0.116, allocations: 36 kB / 370.6 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.116, allocations: 20 kB / 370.6 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.172/0.2881, allocations: 472.2 kB / 371 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00332/0.2914, allocations: 4.395 MB / 375.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006433/0.2921, allocations: 302.2 kB / 375.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.2923, allocations: 151.3 kB / 375.9 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001961/0.2925, allocations: 168.8 kB / 376 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.2926, allocations: 37.94 kB / 376.1 MB, free: 16.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.013e-06/0.2926, allocations: 1.281 kB / 376.1 MB, free: 16.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003139/0.2957, allocations: 1.734 MB / 377.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.2957, allocations: 59.56 kB / 377.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006444/0.2964, allocations: 0.5328 MB / 378.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.2964, allocations: 36.58 kB / 378.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.2967, allocations: 484.7 kB / 378.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.2968, allocations: 211 kB / 379.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.2969, allocations: 135.3 kB / 379.3 MB, free: 14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.029e-05/0.297, allocations: 387.1 kB / 379.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.2973, allocations: 159.7 kB / 379.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.2976, allocations: 458.6 kB / 380.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006863/0.2983, allocations: 0.672 MB / 380.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.2983, allocations: 5.281 kB / 380.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009815/0.2993, allocations: 0.7404 MB / 381.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.2993, allocations: 9.25 kB / 381.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2993, allocations: 13.69 kB / 381.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.2995, allocations: 47.7 kB / 381.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.3, allocations: 177.3 kB / 381.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/0.3012, allocations: 1.686 MB / 383.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.3015, allocations: 29.31 kB / 383.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.3015, allocations: 38.33 kB / 383.7 MB, free: 10.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002401/0.3018, allocations: 242.1 kB / 383.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-05/0.3019, allocations: 73.66 kB / 384 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.302, allocations: 77.2 kB / 384 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.302, allocations: 9.75 kB / 384 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.302, allocations: 1.609 kB / 384 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3021, allocations: 2.719 kB / 384 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.304, allocations: 1.41 MB / 385.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.304, allocations: 3.312 kB / 385.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/0.3044, allocations: 117.7 kB / 385.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.413e-05/0.3045, allocations: 22.94 kB / 385.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.3045, allocations: 16.16 kB / 385.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006744/0.3052, allocations: 1.38 MB / 387 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3052, allocations: 14.56 kB / 387 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008849/0.3061, allocations: 0.7714 MB / 387.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-05/0.3062, allocations: 137.2 kB / 387.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.499e-05/0.3063, allocations: 22.05 kB / 387.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3065, allocations: 11.41 kB / 387.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.3066, allocations: 42.95 kB / 388 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.3066, allocations: 21.7 kB / 388 MB, free: 7.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005783/0.3072, allocations: 360.8 kB / 388.4 MB, free: 7.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3072, allocations: 1.312 kB / 388.4 MB, free: 7.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007621/0.308, allocations: 140.8 kB / 388.5 MB, free: 7.137 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001335/0.3093, allocations: 1.34 MB / 389.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.3107, allocations: 0.6114 MB / 390.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3108, allocations: 2.875 kB / 390.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.3112, allocations: 316.9 kB / 390.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007299/0.3119, allocations: 102.2 kB / 390.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007792/0.3197, allocations: 6.591 MB / 397.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.3202, allocations: 0.9681 MB / 398.4 MB, free: 220 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003197/0.3205, allocations: 87.19 kB / 398.5 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005204/0.3211, allocations: 329.5 kB / 398.8 MB, free: 15.99 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3211, allocations: 4 kB / 398.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.3518, allocations: 11.46 MB / 410.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.3521, allocations: 235.8 kB / 410.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.482, allocations: 0 / 410.5 MB, free: 7.984 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches