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.001687/0.001687, allocations: 118.8 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.001818/0.001818, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2368, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007147/0.244, allocations: 5.448 MB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003763/0.2478, allocations: 2.138 MB / 416.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005553/0.2483, allocations: 39.75 kB / 416.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.2489, allocations: 202.3 kB / 416.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.2493, allocations: 174.4 kB / 416.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.2504, allocations: 403 kB / 417.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.2516, allocations: 1.017 MB / 418.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008751/0.2525, allocations: 0.6104 MB / 418.8 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004752/0.253, allocations: 338.8 kB / 419.2 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.2534, allocations: 370.2 kB / 419.5 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.2536, allocations: 92 kB / 419.6 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.2538, allocations: 156 kB / 419.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.254, allocations: 203.3 kB / 420 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003909/0.2544, allocations: 434 kB / 420.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.2557, allocations: 1.19 MB / 421.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2557, allocations: 4 kB / 421.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2557, allocations: 0 / 421.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.2558, allocations: 4 kB / 421.6 MB, free: 4.621 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.001485/0.2572, allocations: 1.048 MB / 422.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2573, allocations: 12.03 kB / 422.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.2575, allocations: 135.4 kB / 422.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.2577, allocations: 104.4 kB / 422.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007603/0.2585, allocations: 0.5301 MB / 423.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.943e-05/0.2585, allocations: 58.38 kB / 423.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.2586, allocations: 88.33 kB / 423.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.26, allocations: 0.8123 MB / 424.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.205e-05/0.26, allocations: 3.984 kB / 424.4 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.43e-05/0.2601, allocations: 36 kB / 424.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.2601, allocations: 24 kB / 424.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009596/0.2611, allocations: 499.6 kB / 424.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00317/0.2643, allocations: 2.869 MB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.2648, allocations: 226.6 kB / 428 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.265, allocations: 100.8 kB / 428.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002281/0.2653, allocations: 247.2 kB / 428.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.2653, allocations: 47.05 kB / 428.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.2653, allocations: 0 / 428.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002326/0.2677, allocations: 1.266 MB / 429.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.2677, allocations: 59.41 kB / 429.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.268, allocations: 309.7 kB / 430 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.2681, allocations: 29.7 kB / 430.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.2683, allocations: 411.7 kB / 430.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.2684, allocations: 138.8 kB / 430.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2686, allocations: 86.2 kB / 430.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.2687, allocations: 358.7 kB / 431 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.269, allocations: 105.1 kB / 431.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.2693, allocations: 250.7 kB / 431.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005427/0.2698, allocations: 396.7 kB / 431.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2698, allocations: 0 / 431.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007926/0.2706, allocations: 465.3 kB / 432.2 MB, free: 9.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2706, allocations: 8 kB / 432.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.2707, allocations: 7.984 kB / 432.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.2708, allocations: 45.36 kB / 432.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.2712, allocations: 111.8 kB / 432.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004268/0.2716, allocations: 0.5562 MB / 432.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.2718, allocations: 16 kB / 433 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.2718, allocations: 20 kB / 433 MB, free: 8.582 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.0002625/0.2721, allocations: 221.1 kB / 433.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.866e-05/0.2722, allocations: 47.7 kB / 433.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000609/0.2728, allocations: 322.2 kB / 433.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2728, allocations: 7.984 kB / 433.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2728, allocations: 0 / 433.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2728, allocations: 0 / 433.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.2742, allocations: 1.016 MB / 434.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2743, allocations: 0 / 434.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.2746, allocations: 83.89 kB / 434.7 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.2747, allocations: 28.84 kB / 434.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.2748, allocations: 20.16 kB / 434.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003715/0.2752, allocations: 0.5445 MB / 435.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2752, allocations: 7.969 kB / 435.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007777/0.2759, allocations: 0.545 MB / 435.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.204e-05/0.276, allocations: 108.9 kB / 435.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.342e-05/0.2761, allocations: 8 kB / 435.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.2762, allocations: 8 kB / 435.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.2763, allocations: 27.97 kB / 435.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.2763, allocations: 19.92 kB / 436 MB, free: 5.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.2766, allocations: 215.2 kB / 436.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2766, allocations: 0 / 436.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004641/0.2771, allocations: 116 kB / 436.3 MB, free: 5.09 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.00116/0.2782, allocations: 1.105 MB / 437.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005986/0.2788, allocations: 315.8 kB / 437.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2788, allocations: 0 / 437.7 MB, free: 3.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.2791, allocations: 137.1 kB / 437.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005735/0.2797, allocations: 79.91 kB / 437.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005488/0.2852, allocations: 4.417 MB / 442.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.2858, allocations: 0.9171 MB / 443.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.2859, allocations: 47.33 kB / 443.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.2863, allocations: 243.3 kB / 443.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2863, allocations: 0 / 443.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.3195, allocations: 8.321 MB / 451.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.15, allocations: 4 kB / 451.9 MB, free: 5.387 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.1.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