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.001551/0.001551, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.00194, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 67.47 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006937/0.1155, allocations: 5.434 MB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004324/0.1198, allocations: 2.145 MB / 366.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1209, allocations: 39.75 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005726/0.1215, allocations: 198.3 kB / 366.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005357/0.1221, allocations: 178.3 kB / 366.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.1231, allocations: 403 kB / 367.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1241, allocations: 1.025 MB / 368.3 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007983/0.125, allocations: 0.6104 MB / 368.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.1254, allocations: 350.7 kB / 369.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004098/0.1258, allocations: 354.4 kB / 369.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1259, allocations: 92 kB / 369.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002502/0.1262, allocations: 159.9 kB / 369.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.1264, allocations: 203.4 kB / 370.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.1267, allocations: 430 kB / 370.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1278, allocations: 1.183 MB / 371.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1278, allocations: 0 / 371.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1278, allocations: 0 / 371.7 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.1278, allocations: 8 kB / 371.7 MB, free: 0.5195 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.1702/0.298, allocations: 1.026 MB / 372.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2981, allocations: 9.406 kB / 372.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004071/0.2985, allocations: 99.61 kB / 372.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.2998, allocations: 0.5304 MB / 373.3 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/0.2998, allocations: 61.03 kB / 373.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/0.3, allocations: 86.27 kB / 373.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.3017, allocations: 0.7982 MB / 374.3 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.3018, allocations: 11.69 kB / 374.3 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/0.3018, allocations: 35.81 kB / 374.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.3019, allocations: 21.56 kB / 374.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.3029, allocations: 0.4956 MB / 374.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.3061, allocations: 2.853 MB / 377.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006186/0.3067, allocations: 229.2 kB / 377.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.3069, allocations: 103.6 kB / 378 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001931/0.3071, allocations: 250.6 kB / 378.3 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.3072, allocations: 36.98 kB / 378.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.3072, allocations: 0 / 378.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002222/0.3094, allocations: 1.265 MB / 379.6 MB, free: 16.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.3094, allocations: 55.19 kB / 379.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.3098, allocations: 310.3 kB / 379.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.3099, allocations: 30.7 kB / 379.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.3101, allocations: 399.4 kB / 380.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.3102, allocations: 137.2 kB / 380.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.3103, allocations: 93.77 kB / 380.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3104, allocations: 352.8 kB / 380.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.3106, allocations: 107 kB / 381 MB, free: 14.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.311, allocations: 250.9 kB / 381.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005028/0.3115, allocations: 392.8 kB / 381.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3115, allocations: 6.969 kB / 381.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007243/0.3123, allocations: 454.5 kB / 382.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3123, allocations: 7.656 kB / 382.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3123, allocations: 4.031 kB / 382.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/0.3125, allocations: 38.12 kB / 382.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.3129, allocations: 111.6 kB / 382.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002695/0.3131, allocations: 0.5615 MB / 382.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3133, allocations: 15.97 kB / 382.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.3134, allocations: 22.23 kB / 382.8 MB, free: 13.71 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.0002215/0.3136, allocations: 218.3 kB / 383.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.798e-05/0.3137, allocations: 38.41 kB / 383.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005658/0.3142, allocations: 321.5 kB / 383.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3143, allocations: 3.594 kB / 383.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3143, allocations: 0.6562 kB / 383.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3143, allocations: 6.031 kB / 383.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.3158, allocations: 1.02 MB / 384.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3158, allocations: 1.812 kB / 384.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.3161, allocations: 76.5 kB / 384.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.3163, allocations: 34.86 kB / 384.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.3163, allocations: 15.52 kB / 384.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002184/0.3165, allocations: 0.557 MB / 385.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3165, allocations: 1.5 kB / 385.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006807/0.3172, allocations: 0.5446 MB / 385.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.3173, allocations: 109.2 kB / 385.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.3173, allocations: 12.12 kB / 385.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.3175, allocations: 8.156 kB / 385.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.934e-05/0.3175, allocations: 23.97 kB / 385.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.3176, allocations: 12.95 kB / 385.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.3178, allocations: 215.3 kB / 386 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3178, allocations: 0 / 386 MB, free: 11.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.3183, allocations: 117.6 kB / 386.2 MB, free: 11.56 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.0001645/0.3185, allocations: 123.9 kB / 386.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006311/0.3191, allocations: 316 kB / 386.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3191, allocations: 0 / 386.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002968/0.3194, allocations: 145.6 kB / 386.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.32, allocations: 79.41 kB / 386.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3221, allocations: 1.573 MB / 388.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.3225, allocations: 0.9209 MB / 389.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.3226, allocations: 43.92 kB / 389.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.3227, allocations: 35.53 kB / 389.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3227, allocations: 0 / 389.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of Templates: time 0.008475/0.3312, allocations: 3.756 MB / 393.1 MB, free: 8.449 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches