Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 199.1 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 245.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008187/0.0008187, allocations: 98.75 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.00021, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1928, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08865/0.2815, allocations: 83.1 MB / 491.8 MB, free: 8.488 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.2817, allocations: 75.97 kB / 491.8 MB, free: 8.414 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02943/0.3112, allocations: 12.07 MB / 0.4921 GB, free: 12.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3112, allocations: 0 / 0.4921 GB, free: 12.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.502e-05/0.3113, allocations: 20 kB / 0.4921 GB, free: 12.33 MB / 378.7 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.00129/0.3126, allocations: 0.8696 MB / 0.493 GB, free: 11.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3126, allocations: 8.031 kB / 0.493 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.3128, allocations: 99.89 kB / 0.4931 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006532/0.3135, allocations: 0.5063 MB / 0.4936 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.3136, allocations: 70.31 kB / 0.4936 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.3137, allocations: 84.38 kB / 0.4937 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.315, allocations: 0.7972 MB / 0.4945 GB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.3151, allocations: 12.09 kB / 0.4945 GB, free: 9.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/0.3152, allocations: 39.94 kB / 0.4945 GB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.3152, allocations: 20 kB / 0.4946 GB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009547/0.3161, allocations: 499.6 kB / 0.495 GB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00313/0.3193, allocations: 2.895 MB / 0.4979 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005413/0.3198, allocations: 234 kB / 0.4981 GB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.32, allocations: 104.8 kB / 0.4982 GB, free: 5.848 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002011/0.3202, allocations: 243.3 kB / 0.4984 GB, free: 5.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.3203, allocations: 46.97 kB / 0.4985 GB, free: 5.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.595e-06/0.3203, allocations: 3.938 kB / 0.4985 GB, free: 5.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002249/0.3225, allocations: 1.254 MB / 0.4997 GB, free: 4.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.3226, allocations: 55.41 kB / 0.4997 GB, free: 4.078 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.3229, allocations: 296.5 kB / 0.5 GB, free: 3.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.323, allocations: 33.7 kB / 0.5001 GB, free: 3.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.3232, allocations: 402.5 kB / 0.5004 GB, free: 3.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.65e-05/0.3233, allocations: 130.1 kB / 0.5006 GB, free: 3.219 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.3233, allocations: 19.94 kB / 0.5006 GB, free: 3.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3235, allocations: 350.7 kB / 0.5009 GB, free: 2.848 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.3237, allocations: 109.1 kB / 0.501 GB, free: 2.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.324, allocations: 258.7 kB / 0.5013 GB, free: 2.426 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005193/0.3245, allocations: 384.9 kB / 0.5016 GB, free: 1.988 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3245, allocations: 7.938 kB / 0.5016 GB, free: 1.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006967/0.3252, allocations: 453.2 kB / 0.5021 GB, free: 1.527 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3253, allocations: 8 kB / 0.5021 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3253, allocations: 4 kB / 0.5021 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.3255, allocations: 32.84 kB / 0.5021 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003341/0.3258, allocations: 112.4 kB / 0.5022 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003852/0.3262, allocations: 0.564 MB / 0.5028 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.3264, allocations: 16 kB / 0.5028 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.3264, allocations: 20 kB / 0.5028 GB, free: 0.7461 MB / 378.7 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.0003236/0.3268, allocations: 225.6 kB / 0.503 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.3268, allocations: 39.58 kB / 0.5031 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005961/0.3274, allocations: 327.5 kB / 0.5034 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3275, allocations: 4 kB / 0.5034 GB, free: 144 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3275, allocations: 0 / 0.5034 GB, free: 144 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3275, allocations: 3.984 kB / 0.5034 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1601/0.4875, allocations: 1.02 MB / 0.5044 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4876, allocations: 2 kB / 0.5044 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000418/0.488, allocations: 79.48 kB / 0.5045 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.4882, allocations: 32.48 kB / 0.5045 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.4882, allocations: 12.55 kB / 0.5045 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002364/0.4885, allocations: 0.552 MB / 0.505 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4885, allocations: 3.203 kB / 0.505 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007948/0.4893, allocations: 0.5518 MB / 0.5056 GB, free: 90.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.527e-05/0.4894, allocations: 111.8 kB / 0.5057 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.571e-05/0.4894, allocations: 9.469 kB / 0.5057 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.4896, allocations: 14.06 kB / 0.5057 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.4896, allocations: 22.98 kB / 0.5057 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.4897, allocations: 10.75 kB / 0.5057 GB, free: 90.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001965/0.4899, allocations: 206.7 kB / 0.5059 GB, free: 90.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4899, allocations: 2.469 kB / 0.5059 GB, free: 90.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005113/0.4904, allocations: 126.9 kB / 0.5061 GB, free: 90.47 MB / 378.7 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.000164/0.4906, allocations: 127.8 kB / 0.5062 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006046/0.4912, allocations: 312.7 kB / 0.5065 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4912, allocations: 1.594 kB / 0.5065 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.4914, allocations: 140 kB / 0.5066 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.492, allocations: 66.97 kB / 0.5067 GB, free: 90.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.4944, allocations: 2.057 MB / 0.5087 GB, free: 89.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.4948, allocations: 0.9235 MB / 0.5096 GB, free: 88.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.302e-05/0.4949, allocations: 34.19 kB / 0.5096 GB, free: 88.42 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4949, allocations: 0 / 0.5096 GB, free: 88.42 MB / 378.7 MB Notification: Performance of Templates: time 0.01038/0.5053, allocations: 9.571 MB / 0.519 GB, free: 87.23 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches