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) 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.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001456/0.001456, allocations: 104.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.3 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 62.2 kB / 306.3 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 50.53 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006496/0.1124, allocations: 5.429 MB / 362.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.1162, allocations: 2.103 MB / 364.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005736/0.1167, allocations: 39.81 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004633/0.1173, allocations: 166.8 kB / 364.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003394/0.1176, allocations: 142.8 kB / 364.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008306/0.1185, allocations: 343.4 kB / 365 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008466/0.1193, allocations: 0.966 MB / 366 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006957/0.12, allocations: 0.5474 MB / 366.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003716/0.1204, allocations: 298.8 kB / 366.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003191/0.1208, allocations: 342.3 kB / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.839e-05/0.1209, allocations: 52 kB / 367.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1211, allocations: 115.9 kB / 367.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.1213, allocations: 163.4 kB / 367.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003373/0.1216, allocations: 398 kB / 367.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009289/0.1225, allocations: 1.106 MB / 369 MB, free: 2.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1225, allocations: 0 / 369 MB, free: 2.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1226, allocations: 0 / 369 MB, free: 2.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1226, allocations: 0 / 369 MB, free: 2.07 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00142/0.124, allocations: 1.033 MB / 370 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.124, allocations: 8.031 kB / 370 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.1243, allocations: 99.89 kB / 370.1 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.1249, allocations: 0.4986 MB / 370.6 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.125, allocations: 70.36 kB / 370.7 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.1251, allocations: 84.38 kB / 370.7 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1717/0.2968, allocations: 0.8035 MB / 371.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.2969, allocations: 5.266 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.2969, allocations: 35.81 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.297, allocations: 20.78 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.298, allocations: 0.4924 MB / 372.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003486/0.3015, allocations: 2.896 MB / 375 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005808/0.3021, allocations: 224.3 kB / 375.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002219/0.3023, allocations: 107.6 kB / 375.3 MB, free: 18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002049/0.3026, allocations: 246.4 kB / 375.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.3026, allocations: 39.53 kB / 375.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.3026, allocations: 0 / 375.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.0026/0.3052, allocations: 1.254 MB / 376.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.3053, allocations: 62.84 kB / 376.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3056, allocations: 318.4 kB / 377.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.3056, allocations: 34.27 kB / 377.3 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.3058, allocations: 398 kB / 377.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.3059, allocations: 135.8 kB / 377.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.306, allocations: 86.16 kB / 377.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.146e-05/0.306, allocations: 347.3 kB / 378.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.3062, allocations: 107.7 kB / 378.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.3065, allocations: 253.1 kB / 378.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004217/0.3069, allocations: 396.3 kB / 378.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.307, allocations: 1.594 kB / 378.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006622/0.3076, allocations: 454.6 kB / 379.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3077, allocations: 7.625 kB / 379.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3077, allocations: 3.875 kB / 379.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.3079, allocations: 39.09 kB / 379.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003518/0.3082, allocations: 107.2 kB / 379.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002746/0.3085, allocations: 0.5642 MB / 380.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.3087, allocations: 17.33 kB / 380.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.3087, allocations: 21.3 kB / 380.1 MB, free: 14.43 MB / 302.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.0002408/0.309, allocations: 218.2 kB / 380.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-05/0.3091, allocations: 38.69 kB / 380.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005749/0.3096, allocations: 334.4 kB / 380.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3097, allocations: 3.75 kB / 380.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3097, allocations: 1.438 kB / 380.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3097, allocations: 1.922 kB / 380.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.3111, allocations: 1.017 MB / 381.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3111, allocations: 1.469 kB / 381.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.3114, allocations: 82.56 kB / 381.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/0.3116, allocations: 34.39 kB / 381.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.3116, allocations: 12.94 kB / 381.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002115/0.3118, allocations: 0.5511 MB / 382.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3118, allocations: 1.094 kB / 382.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.3125, allocations: 0.5439 MB / 383 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.3126, allocations: 104.3 kB / 383.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.3126, allocations: 12.53 kB / 383.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.3128, allocations: 8 kB / 383.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.3129, allocations: 29.19 kB / 383.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.3129, allocations: 17.59 kB / 383.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.3131, allocations: 218.4 kB / 383.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3131, allocations: 3.938 kB / 383.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.3136, allocations: 119 kB / 383.5 MB, free: 12.26 MB / 302.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.0001679/0.3138, allocations: 116.2 kB / 383.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005711/0.3144, allocations: 312.3 kB / 383.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3144, allocations: 0 / 383.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.3147, allocations: 136.3 kB / 384 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.3152, allocations: 70.86 kB / 384.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.3174, allocations: 1.923 MB / 386 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3178, allocations: 0.9205 MB / 386.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.318, allocations: 47.58 kB / 387 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.318, allocations: 32.03 kB / 387 MB, free: 9.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.318, allocations: 4 kB / 387 MB, free: 9.852 MB / 302.1 MB Notification: Performance of Templates: time 0.008669/0.3267, allocations: 3.575 MB / 390.6 MB, free: 9.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches