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.001125/0.001125, allocations: 118.8 kB / 17.79 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.001242/0.001242, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2156/0.2156, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 79.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3237, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007111/0.3309, allocations: 5.782 MB / 0.5361 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00441/0.3353, allocations: 2.35 MB / 0.5384 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.3364, allocations: 41.34 kB / 0.5385 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006968/0.3372, allocations: 233.8 kB / 0.5387 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007488/0.3379, allocations: 180.7 kB / 0.5389 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.3392, allocations: 470.3 kB / 0.5393 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.3407, allocations: 1.119 MB / 0.5404 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.3418, allocations: 0.6189 MB / 0.541 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006777/0.3424, allocations: 379 kB / 0.5414 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005833/0.343, allocations: 391.5 kB / 0.5417 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.3432, allocations: 95.5 kB / 0.5418 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003913/0.3436, allocations: 156.5 kB / 0.542 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.3439, allocations: 223.4 kB / 0.5422 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005771/0.3445, allocations: 462.8 kB / 0.5426 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00155/0.346, allocations: 1.279 MB / 0.5439 GB, free: 3.039 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.346, allocations: 0 / 0.5439 GB, free: 3.039 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3461, allocations: 1.031 kB / 0.5439 GB, free: 3.039 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.078e-05/0.3461, allocations: 0 / 0.5439 GB, free: 3.039 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.002068/0.3482, allocations: 1.134 MB / 0.545 GB, free: 2.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.3482, allocations: 13.09 kB / 0.545 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001909/0.3484, allocations: 142 kB / 0.5451 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.3488, allocations: 111.3 kB / 0.5452 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.3499, allocations: 0.5956 MB / 0.5458 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.383e-05/0.35, allocations: 69.97 kB / 0.5459 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.3501, allocations: 87.22 kB / 0.546 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.3517, allocations: 0.8929 MB / 0.5469 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.3517, allocations: 11.25 kB / 0.5469 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.71e-05/0.3518, allocations: 37.31 kB / 0.5469 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.3518, allocations: 22.25 kB / 0.5469 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3529, allocations: 0.5244 MB / 0.5474 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00367/0.3566, allocations: 3.6 MB / 0.5509 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005551/0.3572, allocations: 226.2 kB / 0.5512 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.3574, allocations: 112.7 kB / 0.5513 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000226/0.3576, allocations: 255.3 kB / 0.5515 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.3576, allocations: 34.56 kB / 0.5515 GB, free: 11.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.3576, allocations: 0 / 0.5515 GB, free: 11.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002546/0.3602, allocations: 1.289 MB / 0.5528 GB, free: 10.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.3603, allocations: 63.34 kB / 0.5529 GB, free: 10.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004493/0.3607, allocations: 401.8 kB / 0.5532 GB, free: 9.922 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.3608, allocations: 33.7 kB / 0.5533 GB, free: 9.883 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.3611, allocations: 462.1 kB / 0.5537 GB, free: 9.422 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3612, allocations: 138 kB / 0.5539 GB, free: 9.285 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.3613, allocations: 98.16 kB / 0.5539 GB, free: 9.184 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3615, allocations: 366.8 kB / 0.5543 GB, free: 8.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.3617, allocations: 113.1 kB / 0.5544 GB, free: 8.703 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.362, allocations: 310 kB / 0.5547 GB, free: 8.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.3626, allocations: 467.6 kB / 0.5551 GB, free: 7.773 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3626, allocations: 0 / 0.5551 GB, free: 7.773 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000796/0.3634, allocations: 0.5088 MB / 0.5556 GB, free: 7.254 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3634, allocations: 8 kB / 0.5556 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3634, allocations: 7.984 kB / 0.5557 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/0.3636, allocations: 36.84 kB / 0.5557 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.364, allocations: 132.3 kB / 0.5558 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003996/0.3644, allocations: 0.5641 MB / 0.5564 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.3647, allocations: 20 kB / 0.5564 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.279e-05/0.3648, allocations: 24 kB / 0.5564 GB, free: 6.438 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.0003333/0.3651, allocations: 229.6 kB / 0.5566 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.838e-05/0.3652, allocations: 59.28 kB / 0.5567 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/0.3658, allocations: 327.1 kB / 0.557 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3659, allocations: 4 kB / 0.557 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3659, allocations: 3.984 kB / 0.557 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3659, allocations: 0 / 0.557 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.3673, allocations: 1.051 MB / 0.558 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3674, allocations: 0 / 0.558 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.3677, allocations: 83.89 kB / 0.5581 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.3679, allocations: 32.78 kB / 0.5581 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.3679, allocations: 12 kB / 0.5582 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003085/0.3682, allocations: 0.5486 MB / 0.5587 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3682, allocations: 3.938 kB / 0.5587 GB, free: 3.973 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.369, allocations: 0.5605 MB / 0.5592 GB, free: 3.371 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.3691, allocations: 112.5 kB / 0.5593 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.542e-05/0.3692, allocations: 11.98 kB / 0.5594 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.3694, allocations: 8 kB / 0.5594 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.915e-05/0.3694, allocations: 31.94 kB / 0.5594 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.3695, allocations: 16 kB / 0.5594 GB, free: 3.176 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.3698, allocations: 275.1 kB / 0.5597 GB, free: 2.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3698, allocations: 0 / 0.5597 GB, free: 2.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000589/0.3704, allocations: 124 kB / 0.5598 GB, free: 2.789 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.001061/0.3714, allocations: 1.127 MB / 0.5609 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000652/0.3721, allocations: 332.5 kB / 0.5612 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3721, allocations: 0 / 0.5612 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.3724, allocations: 145.1 kB / 0.5614 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005885/0.373, allocations: 87.06 kB / 0.5614 GB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0062/0.3792, allocations: 4.797 MB / 0.5661 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.3798, allocations: 0.9561 MB / 0.5671 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.38, allocations: 64.48 kB / 0.5671 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.3803, allocations: 291.7 kB / 0.5674 GB, free: 10.66 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3803, allocations: 0 / 0.5674 GB, free: 10.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.413, allocations: 9.531 MB / 0.5767 GB, free: 1.262 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.32, allocations: 3.984 kB / 0.5767 GB, free: 1.258 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