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.001608/0.001608, allocations: 117.7 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 203.8 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2453, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006404/0.2517, allocations: 5.436 MB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003581/0.2553, allocations: 2.138 MB / 416.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.2563, allocations: 39.75 kB / 416.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005486/0.2569, allocations: 202.3 kB / 416.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/0.2574, allocations: 178.4 kB / 416.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009711/0.2584, allocations: 399 kB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009146/0.2593, allocations: 1.021 MB / 418.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007361/0.2601, allocations: 0.6104 MB / 418.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.2605, allocations: 354.8 kB / 419.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.2609, allocations: 362.3 kB / 419.5 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.2611, allocations: 92 kB / 419.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.2613, allocations: 159.9 kB / 419.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.2615, allocations: 207.3 kB / 419.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.2619, allocations: 430 kB / 420.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.263, allocations: 1.185 MB / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.263, allocations: 0 / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.263, allocations: 0 / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.263, allocations: 4 kB / 421.5 MB, free: 4.703 MB / 334.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.001464/0.2645, allocations: 1.037 MB / 422.5 MB, free: 3.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2645, allocations: 8.031 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.2647, allocations: 135.5 kB / 422.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.2649, allocations: 95.89 kB / 422.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.2657, allocations: 0.5182 MB / 423.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.2658, allocations: 70.31 kB / 423.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.2659, allocations: 96.22 kB / 423.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.2672, allocations: 0.7968 MB / 424.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.331e-05/0.2673, allocations: 15.91 kB / 424.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.682e-05/0.2674, allocations: 32 kB / 424.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.2674, allocations: 20 kB / 424.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009067/0.2683, allocations: 0.4918 MB / 424.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.2718, allocations: 2.86 MB / 427.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000577/0.2724, allocations: 226 kB / 427.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.2726, allocations: 104.8 kB / 428 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002277/0.2728, allocations: 247.3 kB / 428.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.2729, allocations: 35.06 kB / 428.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.2729, allocations: 0 / 428.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002361/0.2752, allocations: 1.257 MB / 429.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.2753, allocations: 55.41 kB / 429.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.2756, allocations: 321.5 kB / 429.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.2757, allocations: 29.7 kB / 429.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.2759, allocations: 402.5 kB / 430.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.556e-05/0.276, allocations: 138.1 kB / 430.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.2762, allocations: 82.27 kB / 430.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2764, allocations: 358.7 kB / 430.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.2766, allocations: 109 kB / 431 MB, free: 10.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.2769, allocations: 250.7 kB / 431.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.2774, allocations: 392.7 kB / 431.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2774, allocations: 4 kB / 431.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000686/0.2781, allocations: 457.1 kB / 432.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2782, allocations: 8 kB / 432.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2782, allocations: 4 kB / 432.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/0.2784, allocations: 36.84 kB / 432.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.2787, allocations: 112.4 kB / 432.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004175/0.2791, allocations: 0.56 MB / 432.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.2793, allocations: 16 kB / 432.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.2794, allocations: 24 kB / 432.8 MB, free: 8.723 MB / 350.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.0002627/0.2796, allocations: 217.6 kB / 433 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.254e-05/0.2797, allocations: 35.56 kB / 433.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006235/0.2803, allocations: 329.8 kB / 433.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2804, allocations: 7.938 kB / 433.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2804, allocations: 0 / 433.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2804, allocations: 4.031 kB / 433.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.2819, allocations: 1.02 MB / 434.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2819, allocations: 4 kB / 434.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.2823, allocations: 79.91 kB / 434.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/0.2824, allocations: 28.84 kB / 434.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.2824, allocations: 15.98 kB / 434.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003442/0.2828, allocations: 0.5525 MB / 435.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2828, allocations: 0 / 435.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007526/0.2836, allocations: 0.5447 MB / 435.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.2837, allocations: 108.7 kB / 435.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/0.2837, allocations: 8 kB / 435.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.2839, allocations: 12 kB / 435.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.2839, allocations: 15.97 kB / 435.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.284, allocations: 19.94 kB / 435.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.2842, allocations: 215.2 kB / 436 MB, free: 5.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2842, allocations: 0 / 436 MB, free: 5.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005523/0.2848, allocations: 128 kB / 436.2 MB, free: 5.23 MB / 350.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.001136/0.2859, allocations: 1.105 MB / 437.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006092/0.2865, allocations: 304.5 kB / 437.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2865, allocations: 0 / 437.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.2868, allocations: 147.8 kB / 437.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.2873, allocations: 77.28 kB / 437.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005302/0.2927, allocations: 4.38 MB / 442.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.2932, allocations: 0.921 MB / 443.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000172/0.2934, allocations: 50.95 kB / 443.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.2936, allocations: 247.3 kB / 443.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2937, allocations: 0 / 443.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.3224, allocations: 8.407 MB / 451.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.56, allocations: 7.875 kB / 451.8 MB, free: 5.469 MB / 366.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