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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001987/0.001987, allocations: 202 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.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2242/0.2242, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 76.16 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3762, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007847/0.3841, allocations: 5.778 MB / 0.5366 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005721/0.3899, allocations: 2.354 MB / 0.5389 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.3914, allocations: 41.06 kB / 0.539 GB, free: 7.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006266/0.392, allocations: 229.5 kB / 0.5392 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005745/0.3927, allocations: 180.9 kB / 0.5393 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.3939, allocations: 470.5 kB / 0.5398 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.3952, allocations: 1.115 MB / 0.5409 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008728/0.396, allocations: 0.6128 MB / 0.5415 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006069/0.3967, allocations: 367.1 kB / 0.5418 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004702/0.3971, allocations: 393.1 kB / 0.5422 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.3973, allocations: 94.56 kB / 0.5423 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.3977, allocations: 160.3 kB / 0.5425 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.3979, allocations: 215.1 kB / 0.5427 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000404/0.3983, allocations: 467.1 kB / 0.5431 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001443/0.3998, allocations: 1.291 MB / 0.5444 GB, free: 3.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3998, allocations: 0 / 0.5444 GB, free: 3.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3998, allocations: 1.125 kB / 0.5444 GB, free: 3.227 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.3998, allocations: 0 / 0.5444 GB, free: 3.227 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.001644/0.4015, allocations: 1.16 MB / 0.5455 GB, free: 2.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4015, allocations: 9.812 kB / 0.5455 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003187/0.4018, allocations: 123.9 kB / 0.5456 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000873/0.4027, allocations: 0.5913 MB / 0.5462 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.219e-05/0.4028, allocations: 74.89 kB / 0.5463 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.4029, allocations: 98.95 kB / 0.5464 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.4044, allocations: 0.8851 MB / 0.5472 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/0.4044, allocations: 11.94 kB / 0.5472 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.278e-05/0.4045, allocations: 36 kB / 0.5473 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.4045, allocations: 24 kB / 0.5473 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009276/0.4054, allocations: 0.5229 MB / 0.5478 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003281/0.4087, allocations: 3.616 MB / 0.5513 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.4093, allocations: 226 kB / 0.5516 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.4095, allocations: 112.8 kB / 0.5517 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001997/0.4097, allocations: 251.2 kB / 0.5519 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.4097, allocations: 34.56 kB / 0.5519 GB, free: 11.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.754e-06/0.4097, allocations: 0 / 0.5519 GB, free: 11.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002344/0.4121, allocations: 1.302 MB / 0.5532 GB, free: 10.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.4121, allocations: 63.34 kB / 0.5533 GB, free: 10.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/0.4125, allocations: 401.8 kB / 0.5537 GB, free: 9.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.4126, allocations: 33.7 kB / 0.5537 GB, free: 9.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/0.4129, allocations: 479.5 kB / 0.5541 GB, free: 9.434 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.634e-05/0.413, allocations: 138.8 kB / 0.5543 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.4131, allocations: 102.2 kB / 0.5544 GB, free: 9.191 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4133, allocations: 358.8 kB / 0.5547 GB, free: 8.832 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.4135, allocations: 113.1 kB / 0.5548 GB, free: 8.719 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/0.4138, allocations: 310 kB / 0.5551 GB, free: 8.332 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005264/0.4143, allocations: 459.6 kB / 0.5556 GB, free: 7.797 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4143, allocations: 0 / 0.5556 GB, free: 7.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007405/0.4151, allocations: 0.5204 MB / 0.5561 GB, free: 7.266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.4151, allocations: 11.98 kB / 0.5561 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4151, allocations: 4.844 kB / 0.5561 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/0.4153, allocations: 40.84 kB / 0.5561 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.4157, allocations: 123.8 kB / 0.5562 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003831/0.4161, allocations: 0.5601 MB / 0.5568 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.4163, allocations: 20 kB / 0.5568 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.4164, allocations: 24 kB / 0.5568 GB, free: 6.457 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.0002984/0.4167, allocations: 229.7 kB / 0.557 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.218e-05/0.4168, allocations: 55.61 kB / 0.5571 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006137/0.4174, allocations: 330.9 kB / 0.5574 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4174, allocations: 7.984 kB / 0.5574 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.4174, allocations: 4 kB / 0.5574 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4174, allocations: 0 / 0.5574 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.4189, allocations: 1.063 MB / 0.5585 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.4189, allocations: 0 / 0.5585 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000353/0.4192, allocations: 83.94 kB / 0.5585 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001486/0.4194, allocations: 36.77 kB / 0.5586 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.4194, allocations: 16.14 kB / 0.5586 GB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003187/0.4198, allocations: 0.5445 MB / 0.5591 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.4198, allocations: 8.016 kB / 0.5591 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007571/0.4205, allocations: 0.553 MB / 0.5597 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.4207, allocations: 124.8 kB / 0.5598 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.4207, allocations: 11.98 kB / 0.5598 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.4209, allocations: 4 kB / 0.5598 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.421, allocations: 35.94 kB / 0.5598 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.421, allocations: 12 kB / 0.5599 GB, free: 3.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000285/0.4213, allocations: 271.1 kB / 0.5601 GB, free: 2.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4213, allocations: 0 / 0.5601 GB, free: 2.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006074/0.4219, allocations: 131.9 kB / 0.5602 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.0001858/0.4221, allocations: 111.2 kB / 0.5603 GB, free: 2.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.4228, allocations: 335.8 kB / 0.5607 GB, free: 2.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4228, allocations: 1.688 kB / 0.5607 GB, free: 2.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.423, allocations: 147.8 kB / 0.5608 GB, free: 2.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.4236, allocations: 74.23 kB / 0.5609 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.4263, allocations: 1.645 MB / 0.5625 GB, free: 432 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.427, allocations: 0.96 MB / 0.5634 GB, free: 15.44 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.4271, allocations: 56.53 kB / 0.5635 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.172e-05/0.4272, allocations: 47.42 kB / 0.5635 GB, free: 15.34 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4272, allocations: 0 / 0.5635 GB, free: 15.34 MB / 430.1 MB Notification: Performance of Templates: time 0.01098/0.4382, allocations: 4.243 MB / 0.5677 GB, free: 11.12 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches