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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00115/0.00115, allocations: 98.84 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.001581, allocations: 198.1 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002127, allocations: 4 kB / 306.6 MB, free: 1.637 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09579, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003925/0.09975, allocations: 3.801 MB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.1019, allocations: 1.341 MB / 363.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.1023, allocations: 23.81 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.1024, allocations: 83.25 kB / 363.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.1028, allocations: 211.3 kB / 363.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.1034, allocations: 243.7 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000712/0.1041, allocations: 0.6397 MB / 364.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004045/0.1045, allocations: 288.3 kB / 364.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.1048, allocations: 254.8 kB / 364.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.1051, allocations: 270.3 kB / 365.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.1052, allocations: 28 kB / 365.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.1053, allocations: 63.92 kB / 365.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.252e-05/0.1054, allocations: 111.4 kB / 365.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1055, allocations: 177.1 kB / 365.6 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005907/0.1061, allocations: 0.7599 MB / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1062, allocations: 0 / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1062, allocations: 0 / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1062, allocations: 0 / 366.3 MB, free: 5.828 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.001415/0.1076, allocations: 0.9783 MB / 367.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1076, allocations: 8.031 kB / 367.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.1079, allocations: 118.7 kB / 367.4 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008191/0.1087, allocations: 0.5764 MB / 368 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.1088, allocations: 62 kB / 368.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1089, allocations: 87.86 kB / 368.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.1102, allocations: 0.8403 MB / 369 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.1103, allocations: 15.84 kB / 369 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.735e-05/0.1103, allocations: 32 kB / 369 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.1104, allocations: 20 kB / 369 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008046/0.1112, allocations: 475.3 kB / 369.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1842/0.2954, allocations: 4.386 MB / 373.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007784/0.2962, allocations: 311.5 kB / 374.2 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001835/0.2964, allocations: 169 kB / 374.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.2964, allocations: 39.67 kB / 374.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.096e-06/0.2965, allocations: 0 / 374.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.00367/0.3001, allocations: 1.738 MB / 376.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.3002, allocations: 60.31 kB / 376.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007916/0.301, allocations: 0.5293 MB / 376.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.301, allocations: 34.95 kB / 376.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.3014, allocations: 484.5 kB / 377.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3016, allocations: 212.3 kB / 377.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.3016, allocations: 17.78 kB / 377.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3018, allocations: 385.8 kB / 377.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.3021, allocations: 161.2 kB / 378 MB, free: 14.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.3025, allocations: 447.5 kB / 378.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.3028, allocations: 238.2 kB / 378.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3028, allocations: 6.75 kB / 378.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001074/0.3039, allocations: 0.7364 MB / 379.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.304, allocations: 10.66 kB / 379.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.304, allocations: 9.625 kB / 379.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.3042, allocations: 48.8 kB / 379.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.3048, allocations: 181.4 kB / 379.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009976/0.3058, allocations: 1.52 MB / 381.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.3061, allocations: 31.88 kB / 381.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.3062, allocations: 34.66 kB / 381.2 MB, free: 11.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002712/0.3064, allocations: 233.6 kB / 381.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.685e-05/0.3065, allocations: 69.06 kB / 381.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3067, allocations: 72.75 kB / 381.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3067, allocations: 6.094 kB / 381.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.3067, allocations: 6.109 kB / 381.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3067, allocations: 3.469 kB / 381.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002117/0.3088, allocations: 1.422 MB / 383 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.3089, allocations: 3.844 kB / 383.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.3093, allocations: 114 kB / 383.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.9e-05/0.3094, allocations: 36.77 kB / 383.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/0.3095, allocations: 18.42 kB / 383.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006398/0.3101, allocations: 1.279 MB / 384.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3101, allocations: 3.406 kB / 384.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.3112, allocations: 0.9066 MB / 385.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3113, allocations: 144.7 kB / 385.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.42e-05/0.3113, allocations: 15.08 kB / 385.6 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.3115, allocations: 13.72 kB / 385.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.3116, allocations: 42.59 kB / 385.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.3117, allocations: 19 kB / 385.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000398/0.3121, allocations: 357.1 kB / 386 MB, free: 8.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3121, allocations: 0 / 386 MB, free: 8.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006895/0.3128, allocations: 137.7 kB / 386.1 MB, free: 8.332 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000142/0.3129, allocations: 128.6 kB / 386.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009118/0.3138, allocations: 0.5757 MB / 386.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3139, allocations: 1.281 kB / 386.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003735/0.3142, allocations: 310.2 kB / 387.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.3147, allocations: 91.25 kB / 387.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.3175, allocations: 2.29 MB / 389.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.318, allocations: 0.9843 MB / 390.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002927/0.3183, allocations: 87.41 kB / 390.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3185, allocations: 59.2 kB / 390.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3185, allocations: 0 / 390.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of Templates: time 0.011/0.3295, allocations: 4.848 MB / 395.5 MB, free: 4.223 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches