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.001067/0.001067, allocations: 121.7 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 200.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2554, allocations: 50.54 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006898/0.2623, allocations: 5.44 MB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003589/0.2659, allocations: 2.145 MB / 416.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008251/0.2668, allocations: 35.81 kB / 416.4 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005734/0.2674, allocations: 206.2 kB / 416.6 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005553/0.268, allocations: 166.5 kB / 416.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000972/0.269, allocations: 399 kB / 417.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2701, allocations: 1.029 MB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008742/0.271, allocations: 0.6065 MB / 418.8 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005385/0.2715, allocations: 346.8 kB / 419.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.272, allocations: 366.3 kB / 419.5 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.2722, allocations: 92 kB / 419.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.2725, allocations: 155.9 kB / 419.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2727, allocations: 211.4 kB / 419.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004308/0.2731, allocations: 430 kB / 420.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.2743, allocations: 1.189 MB / 421.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2743, allocations: 8 kB / 421.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2743, allocations: 0 / 421.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.172e-05/0.2744, allocations: 0 / 421.5 MB, free: 4.676 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.001541/0.2759, allocations: 1.026 MB / 422.5 MB, free: 3.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.276, allocations: 12.03 kB / 422.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.2761, allocations: 139.4 kB / 422.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002974/0.2764, allocations: 91.91 kB / 422.8 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008142/0.2772, allocations: 0.522 MB / 423.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.2773, allocations: 66.31 kB / 423.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.2774, allocations: 92.27 kB / 423.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.2788, allocations: 0.8085 MB / 424.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.2788, allocations: 7.906 kB / 424.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.501e-05/0.2789, allocations: 32 kB / 424.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.2789, allocations: 24 kB / 424.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009478/0.2799, allocations: 499.6 kB / 424.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.283, allocations: 2.856 MB / 427.7 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.2836, allocations: 230 kB / 427.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.2838, allocations: 100.8 kB / 428 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002144/0.284, allocations: 247.3 kB / 428.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.284, allocations: 43.06 kB / 428.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.284, allocations: 0 / 428.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002515/0.2865, allocations: 1.261 MB / 429.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.2866, allocations: 55.41 kB / 429.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.287, allocations: 313.5 kB / 429.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.287, allocations: 33.7 kB / 429.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.2873, allocations: 406.5 kB / 430.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.2875, allocations: 134.1 kB / 430.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.2876, allocations: 90.19 kB / 430.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2877, allocations: 350.7 kB / 430.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.2879, allocations: 109.1 kB / 431 MB, free: 10.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.2882, allocations: 253.5 kB / 431.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000485/0.2887, allocations: 396.6 kB / 431.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2887, allocations: 0 / 431.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00072/0.2895, allocations: 457.2 kB / 432.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.2895, allocations: 8.594 kB / 432.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.2895, allocations: 4 kB / 432.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.2897, allocations: 40.78 kB / 432.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.2901, allocations: 107.9 kB / 432.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003997/0.2905, allocations: 0.56 MB / 432.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.2907, allocations: 19.98 kB / 432.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.2907, allocations: 16 kB / 432.8 MB, free: 8.707 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.0002992/0.291, allocations: 225.7 kB / 433.1 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.767e-05/0.2911, allocations: 39.56 kB / 433.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006195/0.2917, allocations: 321.5 kB / 433.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2917, allocations: 7.938 kB / 433.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2917, allocations: 0 / 433.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2918, allocations: 0 / 433.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.2931, allocations: 1.016 MB / 434.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.2932, allocations: 4 kB / 434.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.2935, allocations: 79.89 kB / 434.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/0.2937, allocations: 33 kB / 434.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.2937, allocations: 8 kB / 434.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003063/0.294, allocations: 0.5523 MB / 435.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2941, allocations: 0 / 435.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007185/0.2948, allocations: 0.5486 MB / 435.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.283e-05/0.2949, allocations: 104.7 kB / 435.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.2949, allocations: 8 kB / 435.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.2951, allocations: 15.98 kB / 435.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.2951, allocations: 27.97 kB / 435.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.2952, allocations: 11.94 kB / 435.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002033/0.2954, allocations: 219.2 kB / 436 MB, free: 5.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.436e-06/0.2954, allocations: 96 / 436 MB, free: 5.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.2959, allocations: 123.9 kB / 436.2 MB, free: 5.215 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.001116/0.297, allocations: 1.105 MB / 437.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006697/0.2977, allocations: 303.8 kB / 437.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2977, allocations: 192 / 437.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.298, allocations: 153.3 kB / 437.7 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.2986, allocations: 69.36 kB / 437.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005549/0.3041, allocations: 4.38 MB / 442.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.3047, allocations: 0.921 MB / 443.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.3048, allocations: 50.95 kB / 443.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000255/0.3051, allocations: 239.4 kB / 443.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3051, allocations: 4 kB / 443.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.3324, allocations: 8.422 MB / 451.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.94, allocations: 7.875 kB / 451.8 MB, free: 5.441 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