Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_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.001584/0.001584, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 205.2 kB / 18.74 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.449/1.449, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.14 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 75.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3064, allocations: 62.45 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007196/0.3136, allocations: 5.775 MB / 0.5362 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004189/0.3178, allocations: 2.362 MB / 0.5386 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006684/0.3185, allocations: 36.38 kB / 0.5386 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005416/0.3191, allocations: 229.7 kB / 0.5388 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004672/0.3196, allocations: 177.2 kB / 0.539 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.3207, allocations: 478.4 kB / 0.5394 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.3219, allocations: 1.115 MB / 0.5405 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008545/0.3228, allocations: 0.6127 MB / 0.5411 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005237/0.3233, allocations: 367.9 kB / 0.5415 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004675/0.3238, allocations: 392.6 kB / 0.5418 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.3239, allocations: 94.94 kB / 0.5419 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.3242, allocations: 159 kB / 0.5421 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/0.3244, allocations: 215.8 kB / 0.5423 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004547/0.3249, allocations: 476 kB / 0.5427 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.3263, allocations: 1.277 MB / 0.544 GB, free: 2.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.3264, allocations: 1.312 kB / 0.544 GB, free: 2.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3264, allocations: 3.938 kB / 0.544 GB, free: 2.953 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3264, allocations: 0 / 0.544 GB, free: 2.953 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001724/0.3281, allocations: 1.164 MB / 0.5451 GB, free: 2.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3282, allocations: 10.31 kB / 0.5451 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001715/0.3284, allocations: 141.5 kB / 0.5453 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002937/0.3287, allocations: 119.2 kB / 0.5454 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009894/0.3297, allocations: 0.5993 MB / 0.546 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.029e-05/0.3297, allocations: 70.19 kB / 0.546 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3299, allocations: 95.77 kB / 0.5461 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.3314, allocations: 0.8843 MB / 0.547 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/0.3315, allocations: 4.531 kB / 0.547 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.199e-05/0.3316, allocations: 40.78 kB / 0.547 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.406e-05/0.3316, allocations: 25.12 kB / 0.5471 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.3326, allocations: 0.5268 MB / 0.5476 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.3365, allocations: 3.613 MB / 0.5511 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.3371, allocations: 234.1 kB / 0.5513 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.3373, allocations: 104.8 kB / 0.5514 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002354/0.3375, allocations: 243.3 kB / 0.5517 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.3376, allocations: 42.55 kB / 0.5517 GB, free: 11.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.704e-06/0.3376, allocations: 0 / 0.5517 GB, free: 11.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002452/0.34, allocations: 1.301 MB / 0.553 GB, free: 10.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3401, allocations: 63.33 kB / 0.553 GB, free: 10.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.3406, allocations: 401.9 kB / 0.5534 GB, free: 9.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3406, allocations: 33.7 kB / 0.5535 GB, free: 9.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/0.3409, allocations: 483.5 kB / 0.5539 GB, free: 9.211 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.341, allocations: 146.8 kB / 0.5541 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3412, allocations: 102.2 kB / 0.5541 GB, free: 8.961 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3414, allocations: 354.8 kB / 0.5545 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.3416, allocations: 117.1 kB / 0.5546 GB, free: 8.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.342, allocations: 310 kB / 0.5549 GB, free: 8.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006167/0.3426, allocations: 463.6 kB / 0.5553 GB, free: 7.562 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3426, allocations: 0 / 0.5553 GB, free: 7.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008566/0.3435, allocations: 0.5174 MB / 0.5558 GB, free: 7.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.3435, allocations: 8 kB / 0.5559 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3435, allocations: 8.062 kB / 0.5559 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.3437, allocations: 36.84 kB / 0.5559 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.3441, allocations: 131.7 kB / 0.556 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004122/0.3445, allocations: 0.5524 MB / 0.5566 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.3447, allocations: 20 kB / 0.5566 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.23e-05/0.3448, allocations: 28 kB / 0.5566 GB, free: 6.227 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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.0002934/0.3451, allocations: 229.7 kB / 0.5568 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.79e-05/0.3452, allocations: 55.61 kB / 0.5569 GB, free: 5.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006378/0.3458, allocations: 330.9 kB / 0.5572 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.3458, allocations: 8 kB / 0.5572 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3458, allocations: 0 / 0.5572 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3458, allocations: 0 / 0.5572 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.3474, allocations: 1.059 MB / 0.5582 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3474, allocations: 4 kB / 0.5582 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.3477, allocations: 75.91 kB / 0.5583 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001305/0.3479, allocations: 40.92 kB / 0.5583 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.3479, allocations: 12 kB / 0.5584 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003737/0.3483, allocations: 0.5407 MB / 0.5589 GB, free: 3.762 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3483, allocations: 7.875 kB / 0.5589 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008248/0.3491, allocations: 0.5577 MB / 0.5594 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3493, allocations: 124.8 kB / 0.5596 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.3493, allocations: 8 kB / 0.5596 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.3495, allocations: 8 kB / 0.5596 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.3495, allocations: 31.91 kB / 0.5596 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.3496, allocations: 11.98 kB / 0.5596 GB, free: 2.957 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002983/0.3499, allocations: 271.2 kB / 0.5599 GB, free: 2.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3499, allocations: 0 / 0.5599 GB, free: 2.695 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005492/0.3504, allocations: 131.9 kB / 0.56 GB, free: 2.566 MB / 414.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.y,inertia2b.w,torqueToAngle2b.y,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.001254/0.3517, allocations: 1.131 MB / 0.5611 GB, free: 1.387 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.3524, allocations: 333.2 kB / 0.5614 GB, free: 1.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3524, allocations: 0 / 0.5614 GB, free: 1.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.3527, allocations: 140.2 kB / 0.5616 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.3532, allocations: 85.77 kB / 0.5616 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006412/0.3596, allocations: 4.838 MB / 0.5664 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.3603, allocations: 0.9641 MB / 0.5673 GB, free: 10.74 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.3605, allocations: 56.53 kB / 0.5674 GB, free: 10.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.3608, allocations: 299.7 kB / 0.5676 GB, free: 10.39 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3609, allocations: 0 / 0.5676 GB, free: 10.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.3972, allocations: 9.391 MB / 0.5768 GB, free: 1.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.85, allocations: 21.23 kB / 0.5768 GB, free: 1.113 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches