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.001397/0.001397, allocations: 105.9 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 209.8 kB / 18.26 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.2 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09217, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006634/0.09884, allocations: 5.428 MB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003302/0.1022, allocations: 2.091 MB / 364.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007678/0.103, allocations: 35.81 kB / 364.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000489/0.1035, allocations: 158.8 kB / 364.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005352/0.104, allocations: 138.8 kB / 364.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008539/0.1049, allocations: 351.4 kB / 365.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.106, allocations: 1.021 MB / 366.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008637/0.1069, allocations: 0.6026 MB / 366.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.1074, allocations: 350.8 kB / 367.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004405/0.1078, allocations: 362.3 kB / 367.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.1079, allocations: 92 kB / 367.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.1082, allocations: 151.9 kB / 367.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.1084, allocations: 211.4 kB / 368 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003884/0.1088, allocations: 434 kB / 368.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009807/0.1098, allocations: 1.149 MB / 369.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1098, allocations: 0 / 369.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1099, allocations: 0 / 369.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.1099, allocations: 0 / 369.6 MB, free: 1.703 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.001598/0.1115, allocations: 1.045 MB / 370.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1115, allocations: 8.031 kB / 370.7 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001866/0.1117, allocations: 131.5 kB / 370.8 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.1119, allocations: 99.89 kB / 370.9 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1271/0.2391, allocations: 0.4964 MB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.2392, allocations: 62.72 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.2393, allocations: 87.02 kB / 371.5 MB, free: 20.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.2409, allocations: 0.8056 MB / 372.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.2409, allocations: 5.531 kB / 372.3 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.311e-05/0.241, allocations: 35.72 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.241, allocations: 20.41 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009361/0.2419, allocations: 0.4984 MB / 372.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.2448, allocations: 2.891 MB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.2454, allocations: 215.9 kB / 376 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.2455, allocations: 108.8 kB / 376.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001802/0.2457, allocations: 253.9 kB / 376.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.2457, allocations: 39.41 kB / 376.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.044e-06/0.2458, allocations: 3.828 kB / 376.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001943/0.2477, allocations: 1.261 MB / 377.7 MB, free: 16.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.2477, allocations: 55.91 kB / 377.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.248, allocations: 312.8 kB / 378 MB, free: 16.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.248, allocations: 31.11 kB / 378 MB, free: 16.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2481, allocations: 402.6 kB / 378.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.2482, allocations: 134.6 kB / 378.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.2483, allocations: 83.02 kB / 378.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.782e-05/0.2484, allocations: 351.9 kB / 379 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.2486, allocations: 107.4 kB / 379.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.2488, allocations: 251.9 kB / 379.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004439/0.2493, allocations: 389.8 kB / 379.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2493, allocations: 5.156 kB / 379.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005914/0.2499, allocations: 459.2 kB / 380.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2499, allocations: 10.28 kB / 380.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2499, allocations: 5 kB / 380.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.2501, allocations: 34.61 kB / 380.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.2505, allocations: 111.6 kB / 380.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000236/0.2507, allocations: 0.5605 MB / 380.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.2509, allocations: 15.44 kB / 380.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.251, allocations: 26.84 kB / 380.9 MB, free: 14.12 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.0001882/0.2512, allocations: 223.4 kB / 381.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.358e-05/0.2512, allocations: 37.78 kB / 381.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005161/0.2517, allocations: 320.9 kB / 381.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.2518, allocations: 11.66 kB / 381.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2518, allocations: 2.031 kB / 381.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2518, allocations: 1.5 kB / 381.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.2529, allocations: 1.023 MB / 382.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.253, allocations: 1.75 kB / 382.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.2533, allocations: 80.77 kB / 382.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001413/0.2535, allocations: 29.36 kB / 382.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.2535, allocations: 10.77 kB / 382.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001746/0.2537, allocations: 0.5493 MB / 383.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2537, allocations: 8.562 kB / 383.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006537/0.2543, allocations: 0.5397 MB / 383.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.2544, allocations: 112.4 kB / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.2544, allocations: 8.016 kB / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.2546, allocations: 10.22 kB / 383.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.2547, allocations: 22.11 kB / 383.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.2547, allocations: 15.33 kB / 383.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000172/0.2549, allocations: 214.4 kB / 384.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2549, allocations: 0 / 384.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000443/0.2553, allocations: 128.7 kB / 384.3 MB, free: 11.96 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.0008164/0.2562, allocations: 1.105 MB / 385.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006332/0.2568, allocations: 328.3 kB / 385.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2568, allocations: 1.125 kB / 385.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.2571, allocations: 140.5 kB / 385.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004456/0.2575, allocations: 66.38 kB / 385.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.2621, allocations: 4.759 MB / 390.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.2625, allocations: 0.9196 MB / 391.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.2626, allocations: 48.48 kB / 391.6 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.2628, allocations: 244.5 kB / 391.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2628, allocations: 0 / 391.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.532/1.795, allocations: 7.985 MB / 399.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/1.795, allocations: 245.1 kB / 400.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/3.681, allocations: 0 / 400.1 MB, free: 3.168 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