Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 114.8 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 43.61 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.09852, allocations: 49.46 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006458/0.105, allocations: 5.421 MB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.1085, allocations: 2.071 MB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005561/0.1091, allocations: 35.81 kB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004639/0.1096, allocations: 206.3 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.11, allocations: 174.4 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008216/0.1108, allocations: 387.1 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009687/0.1118, allocations: 1.021 MB / 360.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007737/0.1126, allocations: 0.6104 MB / 361.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.113, allocations: 330.9 kB / 361.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.1134, allocations: 366.3 kB / 362.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.1135, allocations: 92 kB / 362.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002402/0.1138, allocations: 155.9 kB / 362.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001857/0.114, allocations: 203.4 kB / 362.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.1143, allocations: 430 kB / 363 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1154, allocations: 1.183 MB / 364.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1154, allocations: 0 / 364.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1154, allocations: 0 / 364.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.1155, allocations: 0 / 364.1 MB, free: 6.984 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.001453/0.1169, allocations: 1.026 MB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.117, allocations: 15.97 kB / 365.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.1171, allocations: 87.91 kB / 365.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007832/0.1179, allocations: 0.5143 MB / 365.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.118, allocations: 70.38 kB / 365.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1181, allocations: 88.28 kB / 365.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.1194, allocations: 0.8047 MB / 366.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.1195, allocations: 4 kB / 366.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.732e-05/0.1195, allocations: 36 kB / 366.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.1195, allocations: 20 kB / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009595/0.1205, allocations: 0.4957 MB / 367.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.1235, allocations: 2.86 MB / 370.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.1241, allocations: 219.2 kB / 370.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.1243, allocations: 108.8 kB / 370.5 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002313/0.1245, allocations: 247.3 kB / 370.7 MB, free: 88 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.1246, allocations: 34.56 kB / 370.8 MB, free: 44 kB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 3.246e-06/0.1246, allocations: 4 kB / 370.8 MB, free: 40 kB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1659/0.2905, allocations: 1.263 MB / 372 MB, free: 25.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.2906, allocations: 54.81 kB / 372.1 MB, free: 25.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.2909, allocations: 303.4 kB / 372.4 MB, free: 24.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.2909, allocations: 33.11 kB / 372.4 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.2912, allocations: 394.9 kB / 372.8 MB, free: 24.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.2913, allocations: 133.6 kB / 372.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.2914, allocations: 92.59 kB / 373 MB, free: 24.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.2915, allocations: 352.6 kB / 373.4 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.2917, allocations: 108.1 kB / 373.5 MB, free: 24.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.292, allocations: 253.4 kB / 373.7 MB, free: 24.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004398/0.2924, allocations: 397.8 kB / 374.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2925, allocations: 0.9375 kB / 374.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006476/0.2931, allocations: 456.8 kB / 374.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2932, allocations: 7.531 kB / 374.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2932, allocations: 4.75 kB / 374.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.2934, allocations: 39.48 kB / 374.6 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.2938, allocations: 116.4 kB / 374.7 MB, free: 23.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00027/0.294, allocations: 0.5506 MB / 375.3 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2942, allocations: 17.3 kB / 375.3 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.2943, allocations: 22.44 kB / 375.3 MB, free: 23.04 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.0002417/0.2945, allocations: 224.7 kB / 375.5 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.2946, allocations: 37.34 kB / 375.6 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005333/0.2951, allocations: 319.6 kB / 375.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.2952, allocations: 4.656 kB / 375.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2952, allocations: 0 / 375.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2952, allocations: 9.531 kB / 375.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.2964, allocations: 1.013 MB / 376.9 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2964, allocations: 4.812 kB / 376.9 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.2968, allocations: 76.27 kB / 377 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.2969, allocations: 34.38 kB / 377 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.2969, allocations: 10.3 kB / 377 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001951/0.2971, allocations: 0.5528 MB / 377.6 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.2971, allocations: 3.766 kB / 377.6 MB, free: 21.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.2978, allocations: 0.5449 MB / 378.1 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.2979, allocations: 108.5 kB / 378.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.2979, allocations: 11.53 kB / 378.2 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.2981, allocations: 14.88 kB / 378.2 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.2982, allocations: 23.09 kB / 378.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.2982, allocations: 15.16 kB / 378.3 MB, free: 21.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.2984, allocations: 212.2 kB / 378.5 MB, free: 20.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2984, allocations: 0 / 378.5 MB, free: 20.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.2989, allocations: 119.9 kB / 378.6 MB, free: 20.9 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.0001294/0.299, allocations: 128.5 kB / 378.7 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005359/0.2996, allocations: 303.3 kB / 379 MB, free: 20.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2996, allocations: 0 / 379 MB, free: 20.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.2998, allocations: 146.7 kB / 379.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.3003, allocations: 68.58 kB / 379.2 MB, free: 20.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.3025, allocations: 1.575 MB / 380.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.303, allocations: 0.9247 MB / 381.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.3032, allocations: 48.62 kB / 381.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.3032, allocations: 29.23 kB / 381.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3032, allocations: 1.062 kB / 381.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of Templates: time 0.009495/0.3127, allocations: 3.763 MB / 385.6 MB, free: 18.54 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches