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.001477/0.001477, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 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.2065/0.2065, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3152, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006667/0.3219, allocations: 5.783 MB / 0.5361 GB, free: 8.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004728/0.3267, allocations: 2.353 MB / 0.5384 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.3285, allocations: 41.97 kB / 0.5385 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008945/0.3294, allocations: 229 kB / 0.5387 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001248/0.3307, allocations: 177.5 kB / 0.5389 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.3324, allocations: 466.1 kB / 0.5393 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002122/0.3346, allocations: 1.132 MB / 0.5404 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.3359, allocations: 0.61 MB / 0.541 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009182/0.3368, allocations: 379.2 kB / 0.5414 GB, free: 4.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007499/0.3376, allocations: 387.9 kB / 0.5417 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002456/0.3378, allocations: 94.81 kB / 0.5418 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005983/0.3385, allocations: 163.8 kB / 0.542 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003068/0.3388, allocations: 216 kB / 0.5422 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008599/0.3396, allocations: 475.3 kB / 0.5426 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.3412, allocations: 1.271 MB / 0.5439 GB, free: 3.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.3412, allocations: 0 / 0.5439 GB, free: 3.055 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3412, allocations: 1 kB / 0.5439 GB, free: 3.055 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.3412, allocations: 0 / 0.5439 GB, free: 3.055 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.001589/0.3428, allocations: 1.142 MB / 0.545 GB, free: 2.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3429, allocations: 9.125 kB / 0.545 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.343, allocations: 141.3 kB / 0.5451 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.3433, allocations: 106.9 kB / 0.5452 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.3444, allocations: 0.5956 MB / 0.5458 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.96e-05/0.3444, allocations: 66.12 kB / 0.5459 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.3446, allocations: 91.12 kB / 0.546 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.3461, allocations: 0.8895 MB / 0.5468 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.3461, allocations: 11.38 kB / 0.5469 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.74e-05/0.3462, allocations: 41.36 kB / 0.5469 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.3462, allocations: 21.53 kB / 0.5469 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009735/0.3472, allocations: 0.528 MB / 0.5474 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.3508, allocations: 3.607 MB / 0.551 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.3513, allocations: 230.2 kB / 0.5512 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3515, allocations: 100.8 kB / 0.5513 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/0.3517, allocations: 255.2 kB / 0.5515 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3518, allocations: 30.56 kB / 0.5515 GB, free: 11.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.3518, allocations: 0 / 0.5515 GB, free: 11.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002417/0.3542, allocations: 1.297 MB / 0.5528 GB, free: 10.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3543, allocations: 59.34 kB / 0.5529 GB, free: 10.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/0.3547, allocations: 401.8 kB / 0.5533 GB, free: 9.918 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.3548, allocations: 33.7 kB / 0.5533 GB, free: 9.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.3551, allocations: 470.1 kB / 0.5537 GB, free: 9.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.605e-05/0.3552, allocations: 138 kB / 0.5539 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.3553, allocations: 102.2 kB / 0.554 GB, free: 9.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3555, allocations: 366.7 kB / 0.5543 GB, free: 8.801 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.3557, allocations: 113.1 kB / 0.5544 GB, free: 8.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.3561, allocations: 306 kB / 0.5547 GB, free: 8.305 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006037/0.3567, allocations: 463.6 kB / 0.5552 GB, free: 7.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3567, allocations: 0 / 0.5552 GB, free: 7.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000837/0.3575, allocations: 0.5125 MB / 0.5557 GB, free: 7.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.3576, allocations: 10.34 kB / 0.5557 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3576, allocations: 8 kB / 0.5557 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002029/0.3578, allocations: 37.56 kB / 0.5557 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003916/0.3582, allocations: 135.8 kB / 0.5558 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003666/0.3586, allocations: 0.5524 MB / 0.5564 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.3588, allocations: 16 kB / 0.5564 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.3589, 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.0003005/0.3592, allocations: 233.6 kB / 0.5566 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.531e-05/0.3592, allocations: 51.28 kB / 0.5567 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005947/0.3598, allocations: 331 kB / 0.557 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3599, allocations: 4 kB / 0.557 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.3599, allocations: 0 / 0.557 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3599, allocations: 0 / 0.557 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.3614, allocations: 1.059 MB / 0.558 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3614, allocations: 0 / 0.558 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.3618, allocations: 83.89 kB / 0.5581 GB, free: 4.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.3619, allocations: 36.78 kB / 0.5582 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.362, allocations: 8 kB / 0.5582 GB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003127/0.3623, allocations: 0.5487 MB / 0.5587 GB, free: 3.973 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3623, allocations: 4.031 kB / 0.5587 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007611/0.3631, allocations: 0.5605 MB / 0.5592 GB, free: 3.367 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3632, allocations: 116.5 kB / 0.5594 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.3632, allocations: 12 kB / 0.5594 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.3634, allocations: 8 kB / 0.5594 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.3635, allocations: 27.94 kB / 0.5594 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3635, allocations: 19.98 kB / 0.5594 GB, free: 3.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000271/0.3638, allocations: 267.2 kB / 0.5597 GB, free: 2.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3638, allocations: 0 / 0.5597 GB, free: 2.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005602/0.3643, allocations: 132 kB / 0.5598 GB, free: 2.781 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.00107/0.3654, allocations: 1.123 MB / 0.5609 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006305/0.3661, allocations: 332 kB / 0.5612 GB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3661, allocations: 0 / 0.5612 GB, free: 1.285 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.3663, allocations: 145.2 kB / 0.5614 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.3669, allocations: 77.73 kB / 0.5614 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00606/0.373, allocations: 4.811 MB / 0.5661 GB, free: 11.99 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.3736, allocations: 0.9561 MB / 0.5671 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.3738, allocations: 68.47 kB / 0.5671 GB, free: 10.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.3741, allocations: 295.3 kB / 0.5674 GB, free: 10.64 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3741, allocations: 0 / 0.5674 GB, free: 10.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.4046, allocations: 9.507 MB / 0.5767 GB, free: 1.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.09, allocations: 7.109 kB / 0.5767 GB, free: 1.262 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