Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0009678/0.000968, allocations: 96.69 kB / 16.96 MB, free: 6.023 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.0009818/0.0009823, allocations: 178.6 kB / 17.84 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004614/0.0004616, allocations: 16 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.0893, allocations: 47.58 MB / 328.4 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004765/0.0941, allocations: 4.655 MB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.09709, allocations: 1.96 MB / 335 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005804/0.0977, allocations: 35.75 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.09806, allocations: 146.8 kB / 335.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003478/0.09842, allocations: 138.8 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007095/0.09914, allocations: 251.4 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1002, allocations: 0.8881 MB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006423/0.1008, allocations: 417.5 kB / 336.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003967/0.1012, allocations: 231 kB / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.1016, allocations: 262.6 kB / 337.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.1016, allocations: 36 kB / 337.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.1018, allocations: 83.91 kB / 337.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.102, allocations: 127.5 kB / 337.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.1021, allocations: 173.3 kB / 337.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007892/0.1029, allocations: 0.8728 MB / 338.6 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1029, allocations: 0 / 338.6 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.103, allocations: 0 / 338.6 MB, free: 9.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.103, allocations: 0 / 338.6 MB, free: 9.781 MB / 286.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.001267/0.1042, allocations: 0.889 MB / 339.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.1043, allocations: 8.031 kB / 339.5 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.1045, allocations: 86.97 kB / 339.6 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.1051, allocations: 0.4936 MB / 340.1 MB, free: 8.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.1052, allocations: 62 kB / 340.1 MB, free: 8.148 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1053, allocations: 84 kB / 340.2 MB, free: 8.066 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1068, allocations: 0.7966 MB / 341 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.151e-05/0.1068, allocations: 7.906 kB / 341 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.1069, allocations: 40 kB / 341 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.1069, allocations: 20 kB / 341.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009068/0.1078, allocations: 0.4918 MB / 341.6 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.111, allocations: 2.911 MB / 344.5 MB, free: 3.637 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.1115, allocations: 219.2 kB / 344.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1117, allocations: 108.8 kB / 344.8 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000253/0.112, allocations: 251.2 kB / 345 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.112, allocations: 38.56 kB / 345.1 MB, free: 2.957 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.653e-06/0.112, allocations: 0 / 345.1 MB, free: 2.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002368/0.1144, allocations: 1.267 MB / 346.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.1145, allocations: 59.34 kB / 346.4 MB, free: 1.523 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.1148, allocations: 296.6 kB / 346.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.1148, allocations: 29.7 kB / 346.7 MB, free: 1.191 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.1151, allocations: 406.5 kB / 347.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.77e-05/0.1152, allocations: 134.1 kB / 347.2 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.1152, allocations: 12 kB / 347.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1153, allocations: 350.8 kB / 347.6 MB, free: 300 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1155, allocations: 109.1 kB / 347.7 MB, free: 192 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.1158, allocations: 250.5 kB / 348 MB, free: 15.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.1161, allocations: 147.7 kB / 348.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1161, allocations: 4 kB / 348.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006847/0.1168, allocations: 461.3 kB / 348.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1168, allocations: 8 kB / 348.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1168, allocations: 4 kB / 348.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001871/0.117, allocations: 44.83 kB / 348.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.1174, allocations: 111.8 kB / 348.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003661/0.1178, allocations: 0.5566 MB / 349.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.1179, allocations: 16 kB / 349.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.118, allocations: 20 kB / 349.3 MB, free: 14.49 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 (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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003169/0.1183, allocations: 221.6 kB / 349.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.1184, allocations: 39.53 kB / 349.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005871/0.119, allocations: 334.1 kB / 349.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.119, allocations: 0 / 349.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.119, allocations: 4 kB / 349.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.119, allocations: 3.984 kB / 349.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.1203, allocations: 1.026 MB / 350.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1204, allocations: 0 / 350.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.1207, allocations: 87.83 kB / 351 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001179/0.1208, allocations: 33 kB / 351 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.1209, allocations: 11.98 kB / 351.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002953/0.1212, allocations: 0.5484 MB / 351.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1212, allocations: 4.031 kB / 351.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006767/0.1219, allocations: 0.5401 MB / 352.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.122, allocations: 116.6 kB / 352.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.122, allocations: 12 kB / 352.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.1221, allocations: 8 kB / 352.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.99e-05/0.1222, allocations: 27.92 kB / 352.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1222, allocations: 8 kB / 352.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001847/0.1224, allocations: 211.1 kB / 352.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1224, allocations: 0 / 352.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004619/0.1229, allocations: 116 kB / 352.6 MB, free: 10.98 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 (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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001589/0.1231, allocations: 123.3 kB / 352.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.1236, allocations: 308.6 kB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1237, allocations: 4.125 kB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.1239, allocations: 141.1 kB / 353.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004851/0.1244, allocations: 65.48 kB / 353.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.1269, allocations: 2.019 MB / 355.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1273, allocations: 0.9288 MB / 356.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1275, allocations: 47.34 kB / 356.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.246e-05/0.1276, allocations: 31.44 kB / 356.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1276, allocations: 0 / 356.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Templates: time 0.007762/0.1354, allocations: 3.457 MB / 359.7 MB, free: 3.797 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches