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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008863/0.0008862, allocations: 103.2 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.00101/0.00101, 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.281/1.281, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.84 kB / 306.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09385, allocations: 50.54 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006604/0.1005, allocations: 5.418 MB / 362.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.1042, allocations: 2.11 MB / 364.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009581/0.1052, allocations: 39.75 kB / 364.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005854/0.1058, allocations: 162.8 kB / 364.6 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006428/0.1065, allocations: 146.8 kB / 364.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009571/0.1075, allocations: 343.4 kB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.1087, allocations: 0.9583 MB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008186/0.1095, allocations: 0.5513 MB / 366.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004591/0.11, allocations: 294.9 kB / 366.9 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004305/0.1104, allocations: 346.2 kB / 367.2 MB, free: 3.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1105, allocations: 52 kB / 367.3 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.1108, allocations: 112 kB / 367.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.111, allocations: 163.3 kB / 367.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003991/0.1114, allocations: 394 kB / 367.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009366/0.1123, allocations: 1.102 MB / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1123, allocations: 0 / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1123, allocations: 0 / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.97e-05/0.1124, allocations: 4 kB / 369 MB, free: 1.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.001574/0.114, allocations: 1.04 MB / 370.1 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.114, allocations: 12.03 kB / 370.1 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.1142, allocations: 131.5 kB / 370.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.1144, allocations: 99.89 kB / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.1151, allocations: 0.5025 MB / 370.8 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.1151, allocations: 62.38 kB / 370.9 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.138/0.2532, allocations: 82.08 kB / 371 MB, free: 20.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.255, allocations: 0.802 MB / 371.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.812e-05/0.2551, allocations: 8.328 kB / 371.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.754e-05/0.2551, allocations: 37.38 kB / 371.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.2552, allocations: 21.17 kB / 371.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.2563, allocations: 0.4939 MB / 372.3 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.2593, allocations: 2.898 MB / 375.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.2598, allocations: 222.2 kB / 375.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.26, allocations: 115.1 kB / 375.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001905/0.2602, allocations: 248.3 kB / 375.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.55e-05/0.2602, allocations: 34.97 kB / 375.8 MB, free: 17.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.675e-06/0.2603, allocations: 0 / 375.8 MB, free: 17.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002036/0.2623, allocations: 1.263 MB / 377.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/0.2623, allocations: 56.23 kB / 377.1 MB, free: 16.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.2626, allocations: 308.5 kB / 377.4 MB, free: 16.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2626, allocations: 31.08 kB / 377.5 MB, free: 16.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.2628, allocations: 407.5 kB / 377.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.749e-05/0.2629, allocations: 133 kB / 378 MB, free: 16.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.263, allocations: 83.86 kB / 378.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/0.263, allocations: 346.6 kB / 378.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.2632, allocations: 110.3 kB / 378.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.2635, allocations: 252.9 kB / 378.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.2639, allocations: 396.8 kB / 379.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2639, allocations: 2.406 kB / 379.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006439/0.2645, allocations: 457.4 kB / 379.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2646, allocations: 8.281 kB / 379.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2646, allocations: 3.688 kB / 379.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001603/0.2648, allocations: 39.44 kB / 379.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/0.2651, allocations: 111.2 kB / 379.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002312/0.2653, allocations: 0.5615 MB / 380.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.2655, allocations: 16.38 kB / 380.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.2656, allocations: 21.14 kB / 380.4 MB, free: 14.52 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.0002123/0.2658, allocations: 226 kB / 380.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.2659, allocations: 34.22 kB / 380.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005267/0.2664, allocations: 325.1 kB / 380.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2664, allocations: 5 kB / 381 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2664, allocations: 0 / 381 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2664, allocations: 3.328 kB / 381 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.2677, allocations: 1.028 MB / 382 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2677, allocations: 1.469 kB / 382 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.268, allocations: 84.38 kB / 382.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.2681, allocations: 33.02 kB / 382.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.2682, allocations: 8.906 kB / 382.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001959/0.2684, allocations: 0.5532 MB / 382.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2684, allocations: 2.375 kB / 382.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006257/0.269, allocations: 0.5411 MB / 383.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.2691, allocations: 111.9 kB / 383.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.2691, allocations: 8.094 kB / 383.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2693, allocations: 9.078 kB / 383.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.2693, allocations: 28.14 kB / 383.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.2694, allocations: 10.05 kB / 383.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.2696, allocations: 221.5 kB / 383.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2696, allocations: 0 / 383.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.27, allocations: 120.4 kB / 383.7 MB, free: 12.35 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.0008315/0.2709, allocations: 1.105 MB / 384.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.2714, allocations: 307.7 kB / 385.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2714, allocations: 5.469 kB / 385.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.2717, allocations: 135.5 kB / 385.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.2721, allocations: 63.72 kB / 385.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004679/0.2768, allocations: 4.75 MB / 390.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.2772, allocations: 0.9209 MB / 391 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.2774, allocations: 52.02 kB / 391 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.2776, allocations: 244.5 kB / 391.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2776, allocations: 1.859 kB / 391.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4774/0.755, allocations: 7.805 MB / 399.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/0.7552, allocations: 248.1 kB / 399.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.377/3.132, allocations: 6.344 kB / 399.3 MB, free: 3.707 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > 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