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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.001439/0.001439, allocations: 214.9 kB / 24.52 MB, free: 3.684 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.367/1.367, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 63.89 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2286, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005902/0.2345, allocations: 4.112 MB / 436 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.2372, allocations: 1.364 MB / 437.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000549/0.2377, allocations: 35.69 kB / 437.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004195/0.2381, allocations: 174.2 kB / 437.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004241/0.2386, allocations: 166.3 kB / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007931/0.2393, allocations: 391.4 kB / 438.1 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.2404, allocations: 0.9744 MB / 439.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004863/0.2409, allocations: 275.5 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004849/0.2414, allocations: 350.5 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003825/0.2418, allocations: 346 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.869e-05/0.2419, allocations: 76 kB / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.2421, allocations: 127.9 kB / 440.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.2423, allocations: 167.3 kB / 440.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.2426, allocations: 334.1 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2437, allocations: 1.114 MB / 441.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2437, allocations: 0 / 441.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2437, allocations: 3.938 kB / 441.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2438, allocations: 0 / 441.9 MB, free: 12.45 MB / 350.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.001569/0.2453, allocations: 1.097 MB / 443 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2454, allocations: 8.031 kB / 443 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.524e-05/0.2454, allocations: 22 kB / 443 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.2455, allocations: 130.9 kB / 443.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002432/0.2458, allocations: 119.3 kB / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009226/0.2467, allocations: 0.5589 MB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.2468, allocations: 58 kB / 443.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.2469, allocations: 91.89 kB / 443.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.2482, allocations: 0.8442 MB / 444.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/0.2483, allocations: 4 kB / 444.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.2483, allocations: 32 kB / 444.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.2483, allocations: 27.98 kB / 444.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008772/0.2492, allocations: 471.3 kB / 445.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003764/0.253, allocations: 4.186 MB / 449.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.2535, allocations: 280.8 kB / 449.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.2538, allocations: 133.5 kB / 449.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.2539, allocations: 20.36 kB / 449.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.2539, allocations: 34.94 kB / 449.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.515e-06/0.2539, allocations: 0 / 449.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003281/0.2572, allocations: 1.595 MB / 451.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.2572, allocations: 63.84 kB / 451.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.2579, allocations: 0.5354 MB / 452.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.2579, allocations: 37.7 kB / 452.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003527/0.2582, allocations: 491.8 kB / 452.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.2584, allocations: 222.1 kB / 452.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.2586, allocations: 142.6 kB / 453 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.2588, allocations: 382.8 kB / 453.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.2591, allocations: 161.9 kB / 453.5 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000539/0.2596, allocations: 455.2 kB / 454 MB, free: 15.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009205/0.2606, allocations: 0.6673 MB / 454.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.2606, allocations: 4 kB / 454.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001208/0.2618, allocations: 0.7382 MB / 455.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.2618, allocations: 8 kB / 455.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.2618, allocations: 12 kB / 455.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.262, allocations: 40.84 kB / 455.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005985/0.2626, allocations: 184.4 kB / 455.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.2642, allocations: 1.578 MB / 457.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.2645, allocations: 31.98 kB / 457.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.2645, allocations: 39.94 kB / 457.3 MB, free: 12.13 MB / 366.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.0003249/0.2649, allocations: 230.4 kB / 457.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.701e-05/0.265, allocations: 79.47 kB / 457.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.2651, allocations: 75.08 kB / 457.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2651, allocations: 8.062 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2651, allocations: 4 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2651, allocations: 3.984 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/0.267, allocations: 1.277 MB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2671, allocations: 4 kB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004876/0.2675, allocations: 119.8 kB / 459.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.262e-05/0.2676, allocations: 20.86 kB / 459.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.2677, allocations: 12.12 kB / 459.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.2687, allocations: 1.271 MB / 460.4 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2687, allocations: 8.188 kB / 460.4 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.2697, allocations: 0.7803 MB / 461.2 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.968e-05/0.2698, allocations: 67.52 kB / 461.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.2699, allocations: 8.188 kB / 461.2 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.2701, allocations: 19.98 kB / 461.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.2702, allocations: 51.84 kB / 461.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.2702, allocations: 16 kB / 461.3 MB, free: 7.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004185/0.2706, allocations: 363.1 kB / 461.7 MB, free: 7.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2706, allocations: 4 kB / 461.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006291/0.2713, allocations: 136 kB / 461.8 MB, free: 7.328 MB / 366.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.001404/0.2727, allocations: 1.343 MB / 463.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009665/0.2736, allocations: 0.5725 MB / 463.7 MB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2736, allocations: 0 / 463.7 MB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.274, allocations: 306.6 kB / 464 MB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005817/0.2746, allocations: 94.56 kB / 464.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/0.2825, allocations: 6.08 MB / 470.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.2829, allocations: 374.3 kB / 470.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002506/0.2831, allocations: 86.03 kB / 470.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.2835, allocations: 327.3 kB / 471 MB, free: 13.65 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.2835, allocations: 0 / 471 MB, free: 13.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04084/0.3243, allocations: 12.5 MB / 483.5 MB, free: 1.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.3, allocations: 7.188 kB / 483.5 MB, free: 1.352 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.714000203995965]